diff options
Diffstat (limited to 'src/devices/sound/saa1099.cpp')
-rw-r--r-- | src/devices/sound/saa1099.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/devices/sound/saa1099.cpp b/src/devices/sound/saa1099.cpp index 682cbb5873f..dd5f6154afd 100644 --- a/src/devices/sound/saa1099.cpp +++ b/src/devices/sound/saa1099.cpp @@ -203,17 +203,12 @@ void saa1099_device::device_clock_changed() // sound_stream_update - handle a stream update //------------------------------------------------- -void saa1099_device::sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) +void saa1099_device::sound_stream_update(sound_stream &stream) { int j, ch; /* if the channels are disabled we're done */ if (!m_all_ch_enable) - { - /* init output data */ - outputs[LEFT].fill(0); - outputs[RIGHT].fill(0); return; - } for (ch = 0; ch < 2; ch++) { @@ -227,7 +222,7 @@ void saa1099_device::sound_stream_update(sound_stream &stream, std::vector<read_ } /* fill all data needed */ - for( j = 0; j < outputs[0].samples(); j++ ) + for( j = 0; j < stream.samples(); j++ ) { int output_l = 0, output_r = 0; @@ -300,8 +295,8 @@ void saa1099_device::sound_stream_update(sound_stream &stream, std::vector<read_ m_noise[ch].counter -= clock_divider; } /* write sound data to the buffer */ - outputs[LEFT].put_int(j, output_l, 32768 * 6); - outputs[RIGHT].put_int(j, output_r, 32768 * 6); + stream.put_int(LEFT, j, output_l, 32768 * 6); + stream.put_int(RIGHT, j, output_r, 32768 * 6); } } |