diff options
Diffstat (limited to 'src/devices/machine/s2636.cpp')
-rw-r--r-- | src/devices/machine/s2636.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/devices/machine/s2636.cpp b/src/devices/machine/s2636.cpp index 10a5a2e2be8..d2576b07f1f 100644 --- a/src/devices/machine/s2636.cpp +++ b/src/devices/machine/s2636.cpp @@ -441,10 +441,9 @@ void s2636_device::write_intack(int state) // sound_stream_update - generate audio output //------------------------------------------------- -void s2636_device::sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) +void s2636_device::sound_stream_update(sound_stream &stream) { - auto &buffer = outputs[0]; - for (int sampindex = 0; sampindex < buffer.samples(); sampindex++) + for (int sampindex = 0; sampindex < stream.samples(); sampindex++) { if (!m_sample_cnt) { @@ -460,7 +459,7 @@ void s2636_device::sound_stream_update(sound_stream &stream, std::vector<read_st } } - buffer.put(sampindex, m_sound_lvl ? 1.0 : 0.0); + stream.put(0, sampindex, m_sound_lvl ? 1.0 : 0.0); m_sample_cnt--; } } |