diff options
Diffstat (limited to 'src/devices/sound/namco_163.cpp')
-rw-r--r-- | src/devices/sound/namco_163.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/devices/sound/namco_163.cpp b/src/devices/sound/namco_163.cpp index 3735e3147df..7f20a25928c 100644 --- a/src/devices/sound/namco_163.cpp +++ b/src/devices/sound/namco_163.cpp @@ -145,16 +145,13 @@ u8 namco_163_sound_device::data_r() } -void namco_163_sound_device::sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) +void namco_163_sound_device::sound_stream_update(sound_stream &stream) { if (m_disable) - { - outputs[0].fill(0); return; - } // Slightly noisy but closer to real hardware behavior - for (int s = 0; s < outputs[0].samples(); s++) + for (int s = 0; s < stream.samples(); s++) { u32 phase = (m_ram[m_reg_addr + 5] << 16) | (m_ram[m_reg_addr + 3] << 8) | m_ram[m_reg_addr + 1]; const u32 freq = ((m_ram[m_reg_addr + 4] & 0x3) << 16) | (m_ram[m_reg_addr + 2] << 8) | m_ram[m_reg_addr + 0]; @@ -174,6 +171,6 @@ void namco_163_sound_device::sound_stream_update(sound_stream &stream, std::vect { m_reg_addr = 0x78 - ((m_ram[0x7f] & 0x70) >> 1); } - outputs[0].put_int(s, output, 128); + stream.put_int(0, s, output, 128); } } |