mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 19:23:47 +01:00
Remove the return value from NativeMix, correct mixing with other channel numbers than 2
This commit is contained in:
1 parent
5ace3179f8
commit
0502d79c99
9 files changed
+55
-70
No files matched your search
+3
-5
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user