Remove the return value from NativeMix, correct mixing with other channel numbers than 2

This commit is contained in:
Henrik Rydgård committed 2025-06-18 23:48:00 +02:00
1 parent 5ace3179f8
commit 0502d79c99
9 files changed
+55 -70

No files matched your search

+3 -5
View File
@@ -7,13 +7,11 @@ StereoResampler g_resampler;
// numFrames is number of stereo frames.
// This is called from *outside* the emulator thread.
int NativeMix(int16_t *outStereo, int numFrames, int sampleRateHz, void *userdata) {
int validFrames = g_resampler.Mix(outStereo, numFrames, false, sampleRateHz);
void NativeMix(int16_t *outStereo, int numFrames, int sampleRateHz, void *userdata) {
g_resampler.Mix(outStereo, numFrames, false, sampleRateHz);
// Mix sound effects on top.
g_BackgroundAudio.SFX().Mix(outStereo, validFrames, sampleRateHz);
return validFrames;
g_BackgroundAudio.SFX().Mix(outStereo, numFrames, sampleRateHz);
}
void System_AudioGetDebugStats(char *buf, size_t bufSize) {