summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/sp0256.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/sp0256.cpp')
-rw-r--r--src/devices/sound/sp0256.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/devices/sound/sp0256.cpp b/src/devices/sound/sp0256.cpp
index 3486f710be3..ba84d002eb5 100644
--- a/src/devices/sound/sp0256.cpp
+++ b/src/devices/sound/sp0256.cpp
@@ -1259,12 +1259,11 @@ void sp0256_device::set_clock(int clock)
// sound_stream_update - handle a stream update
//-------------------------------------------------
-void sp0256_device::sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs)
+void sp0256_device::sound_stream_update(sound_stream &stream)
{
- auto &output = outputs[0];
int output_index = 0;
- while (output_index < output.samples())
+ while (output_index < stream.samples())
{
/* ---------------------------------------------------------------- */
/* First, drain as much of our scratch buffer as we can into the */
@@ -1272,20 +1271,20 @@ void sp0256_device::sound_stream_update(sound_stream &stream, std::vector<read_s
/* ---------------------------------------------------------------- */
while (m_sc_tail != m_sc_head)
{
- output.put_int(output_index++, m_scratch[m_sc_tail++ & SCBUF_MASK], 32768);
+ stream.put_int(0, output_index++, m_scratch[m_sc_tail++ & SCBUF_MASK], 32768);
m_sc_tail &= SCBUF_MASK;
- if (output_index >= output.samples())
+ if (output_index >= stream.samples())
break;
}
/* ---------------------------------------------------------------- */
/* If output outputs is full, then we're done. */
/* ---------------------------------------------------------------- */
- if (output_index > output.samples())
+ if (output_index > stream.samples())
break;
- int length = output.samples() - output_index;
+ int length = stream.samples() - output_index;
/* ---------------------------------------------------------------- */
/* Process the current set of filter coefficients as long as the */