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/sid.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/sid.cpp')
-rw-r--r-- | src/devices/sound/sid.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/sound/sid.cpp b/src/devices/sound/sid.cpp index 86264810fda..7f7292a57be 100644 --- a/src/devices/sound/sid.cpp +++ b/src/devices/sound/sid.cpp @@ -29,9 +29,9 @@ float filterResTable[16]; #define maxLogicalVoices 4 -inline stream_buffer::sample_t mix_mono(uint16_t usum) +inline sound_stream::sample_t mix_mono(uint16_t usum) { - return stream_buffer::sample_t(int16_t(usum - maxLogicalVoices*128)) * (1.0 / (256 * maxLogicalVoices)); + return sound_stream::sample_t(int16_t(usum - maxLogicalVoices*128)) * (1.0 / (256 * maxLogicalVoices)); } } // anonymous namespace @@ -61,13 +61,13 @@ inline void SID6581_t::syncEm() } -void SID6581_t::fill_buffer(write_stream_view &buffer) +void SID6581_t::fill_buffer(sound_stream &stream) { //void* SID6581_t::fill16bitMono(void* buffer, uint32_t numberOfSamples) - for (int sampindex = 0; sampindex < buffer.samples(); sampindex++) + for (int sampindex = 0; sampindex < stream.samples(); sampindex++) { - buffer.put(sampindex, mix_mono( + stream.put(0, sampindex, mix_mono( (*optr[0].outProc)(&optr[0]) +(*optr[1].outProc)(&optr[1]) +((*optr[2].outProc)(&optr[2])&optr3_outputmask) |