diff options
Diffstat (limited to 'src/devices/sound/gb.cpp')
-rw-r--r-- | src/devices/sound/gb.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/devices/sound/gb.cpp b/src/devices/sound/gb.cpp index 9fd9d8d333b..cb4ba86fe36 100644 --- a/src/devices/sound/gb.cpp +++ b/src/devices/sound/gb.cpp @@ -1218,7 +1218,6 @@ void gameboy_sound_device::sound_stream_update(sound_stream &stream, std::vector { auto &outputl = outputs[0]; auto &outputr = outputs[1]; - constexpr stream_buffer::sample_t sample_scale = 1.0 / (32768.0 / 64.0); for (int sampindex = 0; sampindex < outputl.samples(); sampindex++) { s32 sample; @@ -1271,7 +1270,7 @@ void gameboy_sound_device::sound_stream_update(sound_stream &stream, std::vector right *= m_snd_control.vol_right; /* Update the buffers */ - outputl.put(sampindex, stream_buffer::sample_t(left) * sample_scale); - outputr.put(sampindex, stream_buffer::sample_t(right) * sample_scale); + outputl.put_int(sampindex, left, 32768 / 64); + outputr.put_int(sampindex, right, 32768 / 64); } } |