summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/2203intf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/2203intf.cpp')
-rw-r--r--src/devices/sound/2203intf.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/devices/sound/2203intf.cpp b/src/devices/sound/2203intf.cpp
index 6b579f486a3..3a1a31d26a2 100644
--- a/src/devices/sound/2203intf.cpp
+++ b/src/devices/sound/2203intf.cpp
@@ -54,13 +54,12 @@ void ym2203_device::timer_handler(int c, int count, int clock)
}
//-------------------------------------------------
-// sound_stream_update_legacy - handle a stream update
+// stream_generate - handle a stream update
//-------------------------------------------------
-
-void ym2203_device::stream_generate(sound_stream &stream, stream_sample_t const * const *inputs, stream_sample_t * const *outputs, int samples)
+void ym2203_device::stream_generate(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs)
{
- ym2203_update_one(m_chip, outputs[0], samples);
+ ym2203_update_one(m_chip, outputs[0]);
}
@@ -108,7 +107,7 @@ void ym2203_device::calculate_rates()
if (m_stream != nullptr)
m_stream->set_sample_rate(rate);
else
- m_stream = machine().sound().stream_alloc_legacy(*this,0,1,rate, stream_update_legacy_delegate(&ym2203_device::stream_generate,this));
+ m_stream = machine().sound().stream_alloc(*this,0,1,rate, stream_update_delegate(&ym2203_device::stream_generate,this), STREAM_DEFAULT_FLAGS);
}
//-------------------------------------------------