diff options
author | Aaron Giles <aaron@aarongiles.com> | 2020-09-17 01:24:17 -0700 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2020-09-17 01:24:17 -0700 |
commit | 8d7d01caef380b119fbd8653fa5ad23e0d592564 (patch) | |
tree | 69ad747e9a42081425070a010fff86688bf67b54 /src/devices/video | |
parent | dc0ede3c90717ed25de0695c555b861f06344f18 (diff) |
Revert "sound: Improved view interfaces to match usage patterns"
This reverts commit dc0ede3c90717ed25de0695c555b861f06344f18.
Diffstat (limited to 'src/devices/video')
-rw-r--r-- | src/devices/video/i8244.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/video/i8244.cpp b/src/devices/video/i8244.cpp index 3d7ca031a6e..8288dd9e552 100644 --- a/src/devices/video/i8244.cpp +++ b/src/devices/video/i8244.cpp @@ -745,11 +745,11 @@ void i8244_device::sound_stream_update(sound_stream &stream, std::vector<read_st u8 volume = m_vdc.s.sound & 0xf; stream_buffer::sample_t sample_on = (m_sh_output & m_vdc.s.sound >> 7) * 0.5; - while (!outputs[0].done()) + for (int i = 0; i < outputs[0].samples(); i++) { // clock duty cycle m_sh_duty = (m_sh_duty + 1) & 0xf; - outputs[0].put((m_sh_duty < volume) ? sample_on : 0.0); + outputs[0].put(i, (m_sh_duty < volume) ? sample_on : 0.0); } } |