diff options
Diffstat (limited to 'src/devices/sound/2610intf.cpp')
-rw-r--r-- | src/devices/sound/2610intf.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/devices/sound/2610intf.cpp b/src/devices/sound/2610intf.cpp index 2f6e3e08620..b0ee9c99d32 100644 --- a/src/devices/sound/2610intf.cpp +++ b/src/devices/sound/2610intf.cpp @@ -62,20 +62,20 @@ void ym2610_device::timer_handler(int c,int count,int clock) } //------------------------------------------------- -// sound_stream_update_legacy - handle a stream update +// stream_generate - handle a stream update //------------------------------------------------- -void ym2610_device::stream_generate(sound_stream &stream, stream_sample_t const * const *inputs, stream_sample_t * const *outputs, int samples) +void ym2610_device::stream_generate(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) { - ym2610_update_one(m_chip, outputs, samples); + ym2610_update_one(m_chip, outputs); } //------------------------------------------------- -// sound_stream_update_legacy - handle a stream update +// stream_generate - handle a stream update //------------------------------------------------- -void ym2610b_device::stream_generate(sound_stream &stream, stream_sample_t const * const *inputs, stream_sample_t * const *outputs, int samples) +void ym2610b_device::stream_generate(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) { - ym2610b_update_one(m_chip, outputs, samples); + ym2610b_update_one(m_chip, outputs); } @@ -102,7 +102,7 @@ void ym2610_device::device_start() m_timer[1] = timer_alloc(1); /* stream system initialize */ - m_stream = machine().sound().stream_alloc_legacy(*this,0,2,rate, stream_update_legacy_delegate(&ym2610_device::stream_generate,this)); + m_stream = machine().sound().stream_alloc(*this,0,2,rate, stream_update_delegate(&ym2610_device::stream_generate,this), STREAM_DEFAULT_FLAGS); if (!has_configured_map(0) && !has_configured_map(1)) { |