From cef6157803320544651bfc96457d2f8a6df0abd6 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Mon, 14 Apr 2025 11:31:53 +0200 Subject: New sound infrastructure. Should be added soon: - mute - lua hookup (with documentation) - speaker/microphone resampling To be added a little later: - compression - reverb Needs to be added by someone else: - coreaudio - direct - portaudio - xaudio2 - js --- src/devices/sound/es5503.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/devices/sound/es5503.cpp') diff --git a/src/devices/sound/es5503.cpp b/src/devices/sound/es5503.cpp index fc23656d36b..d4d05545852 100644 --- a/src/devices/sound/es5503.cpp +++ b/src/devices/sound/es5503.cpp @@ -152,12 +152,12 @@ void es5503_device::halt_osc(int onum, int type, uint32_t *accumulator, int ress m_irq_func(1); } } -void es5503_device::sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) +void es5503_device::sound_stream_update(sound_stream &stream) { int32_t *mixp; int osc, snum, i; uint32_t ramptr; - int samples = outputs[0].samples(); + int samples = stream.samples(); assert(samples < (44100/50)); std::fill_n(&m_mix_buffer[0], samples*output_channels, 0); @@ -257,9 +257,9 @@ void es5503_device::sound_stream_update(sound_stream &stream, std::vector