diff options
Diffstat (limited to 'src/devices/sound/k051649.cpp')
-rw-r--r-- | src/devices/sound/k051649.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/devices/sound/k051649.cpp b/src/devices/sound/k051649.cpp index 3afa41849d8..c4dd31c1ba7 100644 --- a/src/devices/sound/k051649.cpp +++ b/src/devices/sound/k051649.cpp @@ -133,12 +133,9 @@ void k051649_device::device_clock_changed() // sound_stream_update - handle a stream update //------------------------------------------------- -void k051649_device::sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) +void k051649_device::sound_stream_update(sound_stream &stream) { - // zap the contents of the mixer buffer - outputs[0].fill(0); - - for (int i = 0; i < outputs[0].samples(); i++) + for (int i = 0; i < stream.samples(); i++) { for (sound_channel &voice : m_channel_list) { @@ -157,7 +154,7 @@ void k051649_device::sound_stream_update(sound_stream &stream, std::vector<read_ } // scale to 11 bit digital output on chip - outputs[0].add_int(i, voice.sample >> 4, 1024); + stream.add_int(0, i, voice.sample >> 4, 1024); } } } |