summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/lc78836m.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/lc78836m.cpp')
-rw-r--r--src/devices/sound/lc78836m.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/devices/sound/lc78836m.cpp b/src/devices/sound/lc78836m.cpp
index 7b611e59cf7..ecb007ad081 100644
--- a/src/devices/sound/lc78836m.cpp
+++ b/src/devices/sound/lc78836m.cpp
@@ -88,14 +88,12 @@ void lc78836m_device::device_clock_changed()
update_clock();
}
-void lc78836m_device::sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs)
+void lc78836m_device::sound_stream_update(sound_stream &stream)
{
- outputs[0].fill(0);
- outputs[0].put(0, m_sample_ch1 * m_att / 1024.0);
+ stream.put(0, 0, m_sample_ch1 * m_att / 1024.0);
m_sample_ch1 = 0;
- outputs[1].fill(0);
- outputs[1].put(0, m_sample_ch2 * m_att / 1024.0);
+ stream.put(1, 0, m_sample_ch2 * m_att / 1024.0);
m_sample_ch2 = 0;
if (m_mute && m_att > 0)
@@ -129,7 +127,7 @@ void lc78836m_device::bclk_w(int state)
m_sample_bit++;
if (m_sample_bit >= 16) {
- stream_buffer::sample_t sample = m_sample / double(std::numeric_limits<int16_t>::max());
+ sound_stream::sample_t sample = m_sample / double(std::numeric_limits<int16_t>::max());
if (m_lrck)
m_sample_ch1 = sample;