mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 09:39:33 +01:00
SasAudio: Cap the cycle estimate at 1200 to prevent crackling in FFT. Fixes #9956.
This commit is contained in:
1 parent
24f4cea071
commit
3229b93673
1 file changed
+3
-1
@@ -413,7 +413,9 @@ int SasInstance::EstimateMixUs() {
|
||||
}
|
||||
|
||||
// Each voice costs extra time, and each byte of grain costs extra time.
|
||||
return 20 + voicesPlayingCount * 68 + (grainSize * 60) / 100;
|
||||
int cycles = 20 + voicesPlayingCount * 68 + (grainSize * 60) / 100;
|
||||
// Cap to 1200 to fix FFT, see issue #9956.
|
||||
return std::min(cycles, 1200);
|
||||
}
|
||||
|
||||
void SasVoice::ReadSamples(s16 *output, int numSamples) {
|
||||
|
||||
Reference in new issue
Block a user