diff options
author | 2025-04-14 11:31:53 +0200 | |
---|---|---|
committer | 2025-04-14 22:28:31 +0200 | |
commit | cef6157803320544651bfc96457d2f8a6df0abd6 (patch) | |
tree | f8a64867e3d654cdcad5f4c24824ea82e2c77194 /src/devices/sound/es5503.cpp | |
parent | 9473c027358e1a2d5c93d240a48052368f9d3b84 (diff) |
New sound infrastructure.sound
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
Diffstat (limited to 'src/devices/sound/es5503.cpp')
-rw-r--r-- | src/devices/sound/es5503.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<read_stream_view> const &inputs, std::vector<write_stream_view> &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<read_s mixp = &m_mix_buffer[0]; for (int chan = 0; chan < output_channels; chan++) { - for (i = 0; i < outputs[chan].samples(); i++) + for (i = 0; i < stream.samples(); i++) { - outputs[chan].put_int(i, *mixp++, 32768*8); + stream.put_int(chan, i, *mixp++, 32768*8); } } } |