diff options
Diffstat (limited to 'src/devices/video/i8244.cpp')
-rw-r--r-- | src/devices/video/i8244.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/video/i8244.cpp b/src/devices/video/i8244.cpp index 3a1fb8c696f..b92b7ce9c56 100644 --- a/src/devices/video/i8244.cpp +++ b/src/devices/video/i8244.cpp @@ -769,16 +769,16 @@ u32 i8244_device::screen_update(screen_device &screen, bitmap_ind16 &bitmap, con SOUND ***************************************************************************/ -void i8244_device::sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) +void i8244_device::sound_stream_update(sound_stream &stream) { u8 volume = m_vdc.s.sound & 0xf; - stream_buffer::sample_t sample_on = (m_sh_output & m_vdc.s.sound >> 7) * 0.5; + sound_stream::sample_t sample_on = (m_sh_output & m_vdc.s.sound >> 7) * 0.5; - for (int i = 0; i < outputs[0].samples(); i++) + for (int i = 0; i < stream.samples(); i++) { // clock duty cycle m_sh_duty = (m_sh_duty + 1) & 0xf; - outputs[0].put(i, (m_sh_duty < volume) ? sample_on : 0.0); + stream.put(0, i, (m_sh_duty < volume) ? sample_on : 0.0); } } |