diff options
Diffstat (limited to 'src/devices/sound/mea8000.cpp')
-rw-r--r-- | src/devices/sound/mea8000.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/devices/sound/mea8000.cpp b/src/devices/sound/mea8000.cpp index 4f7fbc453ac..3cf2ad51a6e 100644 --- a/src/devices/sound/mea8000.cpp +++ b/src/devices/sound/mea8000.cpp @@ -134,7 +134,7 @@ void mea8000_device::device_start() init_tables(); - m_stream = stream_alloc_legacy(0, 1, clock() / 60); + m_stream = stream_alloc(0, 1, clock() / 60); save_item(NAME(m_output)); m_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(mea8000_device::timer_expire),this)); @@ -422,12 +422,9 @@ void mea8000_device::stop_frame() -void mea8000_device::sound_stream_update_legacy(sound_stream &stream, stream_sample_t const * const *inputs, stream_sample_t * const *outputs, int samples) +void mea8000_device::sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) { - for (int samp = 0; samp < samples; samp++) - { - outputs[0][samp] = m_output; - } + outputs[0].fill(stream_buffer::sample_t(m_output) * (1.0 / 32768.0)); } /* next sample in frame, sampling at 64 kHz */ |