mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-03 07:53:29 +02:00
Update to v097r14 release.
byuu says: This is a few days old, but oh well. This WIP changes nall,hiro,ruby,icarus back to (u)int(8,16,32,64)_t. I'm slowly pushing for (u)int(8,16,32,64) to use my custom Integer<Size>/Natural<Size> classes instead. But it's going to be one hell of a struggle to get that into higan.
This commit is contained in:
@@ -26,11 +26,11 @@ struct Buffer {
|
||||
}
|
||||
|
||||
inline auto read(uint channel, int offset = 0) -> double& {
|
||||
return sample[channel][(uint16)(rdoffset + offset)];
|
||||
return sample[channel][(uint16_t)(rdoffset + offset)];
|
||||
}
|
||||
|
||||
inline auto write(uint channel, int offset = 0) -> double& {
|
||||
return sample[channel][(uint16)(wroffset + offset)];
|
||||
return sample[channel][(uint16_t)(wroffset + offset)];
|
||||
}
|
||||
|
||||
inline auto clear() -> void {
|
||||
@@ -44,7 +44,7 @@ struct Buffer {
|
||||
}
|
||||
|
||||
double** sample = nullptr;
|
||||
uint16 rdoffset = 0;
|
||||
uint16 wroffset = 0;
|
||||
uint16_t rdoffset = 0;
|
||||
uint16_t wroffset = 0;
|
||||
uint channels = 0;
|
||||
};
|
||||
|
Reference in New Issue
Block a user