diff options
author | 2025-04-14 11:31:53 +0200 | |
---|---|---|
committer | 2025-04-27 22:23:20 +0200 | |
commit | d0f1c15a0f6df2dd51a754cb46e6175b7079c8f2 (patch) | |
tree | be35c94340442af08c316a8679089ee68e119fac /src/devices/sound/ks0164.cpp | |
parent | ec636faeba5c5841c5a4a35b7c9dc2f06a00f538 (diff) |
New sound infrastructure.
Should be added soon:
- mute
- 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/ks0164.cpp')
-rw-r--r-- | src/devices/sound/ks0164.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/sound/ks0164.cpp b/src/devices/sound/ks0164.cpp index 78b24423b2e..bad6b32c4f3 100644 --- a/src/devices/sound/ks0164.cpp +++ b/src/devices/sound/ks0164.cpp @@ -474,9 +474,9 @@ void ks0164_device::cpu_map(address_map &map) map(0xe000, 0xffff).ram(); } -void ks0164_device::sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) +void ks0164_device::sound_stream_update(sound_stream &stream) { - for(int sample = 0; sample != outputs[0].samples(); sample++) { + for(int sample = 0; sample != stream.samples(); sample++) { s32 suml = 0, sumr = 0; for(int voice = 0; voice < 0x20; voice++) { u16 *regs = m_sregs[voice]; @@ -537,7 +537,7 @@ void ks0164_device::sound_stream_update(sound_stream &stream, std::vector<read_s } } } - outputs[0].put_int(sample, suml, 32768 * 32); - outputs[1].put_int(sample, sumr, 32768 * 32); + stream.put_int(0, sample, suml, 32768 * 32); + stream.put_int(1, sample, sumr, 32768 * 32); } } |