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/k053260.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/k053260.cpp')
-rw-r--r-- | src/devices/sound/k053260.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/devices/sound/k053260.cpp b/src/devices/sound/k053260.cpp index e08e385d8f8..d11ae99fcda 100644 --- a/src/devices/sound/k053260.cpp +++ b/src/devices/sound/k053260.cpp @@ -308,11 +308,11 @@ void k053260_device::write(offs_t offset, u8 data) // sound_stream_update - handle a stream update //------------------------------------------------- -void k053260_device::sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) +void k053260_device::sound_stream_update(sound_stream &stream) { if (m_mode & 2) { - for (int j = 0; j < outputs[0].samples(); j++) + for (int j = 0; j < stream.samples(); j++) { s32 buffer[2] = {0, 0}; @@ -322,15 +322,10 @@ void k053260_device::sound_stream_update(sound_stream &stream, std::vector<read_ voice.play(buffer); } - outputs[0].put_int_clamp(j, buffer[0], 32768); - outputs[1].put_int_clamp(j, buffer[1], 32768); + stream.put_int_clamp(0, j, buffer[0], 32768); + stream.put_int_clamp(1, j, buffer[1], 32768); } } - else - { - outputs[0].fill(0); - outputs[1].fill(0); - } } |