diff options
Diffstat (limited to 'src/devices/sound/gb.cpp')
-rw-r--r-- | src/devices/sound/gb.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/devices/sound/gb.cpp b/src/devices/sound/gb.cpp index 81541884162..d8a965e0aa1 100644 --- a/src/devices/sound/gb.cpp +++ b/src/devices/sound/gb.cpp @@ -1307,11 +1307,9 @@ constexpr s32 convert_output(s32 sample) // sound_stream_update - handle a stream update //------------------------------------------------- -void gameboy_sound_device::sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) +void gameboy_sound_device::sound_stream_update(sound_stream &stream) { - auto &outputl = outputs[0]; - auto &outputr = outputs[1]; - for (int sampindex = 0; sampindex < outputl.samples(); sampindex++) + for (int sampindex = 0; sampindex < stream.samples(); sampindex++) { s32 sample; s32 left = 0; @@ -1362,7 +1360,7 @@ void gameboy_sound_device::sound_stream_update(sound_stream &stream, std::vector right *= 1 + m_snd_control.vol_right; /* Update the buffers */ - outputl.put_int(sampindex, left, 15 * 4 * (1 + 7)); - outputr.put_int(sampindex, right, 15 * 4 * (1 + 7)); + stream.put_int(0, sampindex, left, 15 * 4 * (1 + 7)); + stream.put_int(1, sampindex, right, 15 * 4 * (1 + 7)); } } |