gIsConsole check was backwards

This commit is contained in:
gheskett committed 2021-08-03 06:36:31 -05:00
1 parent 06a4190481
commit 832a395bdc
2 files changed
+3 -6

No files matched your search

+2 -2
View File
@@ -1233,9 +1233,9 @@ void audio_reset_session(void) {
gReverbDownsampleRate = preset->reverbDownsampleRate;
#ifdef BETTER_REVERB
if (gIsConsole)
reverbConsole = 2; // Setting this to 1 will crash unless you increase the better reverb buffer (in which case it will just freeze instead)
else
reverbConsole = betterReverbConsoleDownsample; // Console!
else
reverbConsole = 2; // Setting this to 1 will crash unless you increase the better reverb buffer (in which case it will just freeze instead)
if (reverbConsole <= 0) {
reverbConsole = 1;
+1 -4
View File
@@ -142,13 +142,10 @@ inline s16 reverb_sample_left(s32 inSample) {
}
else {
if (i == 0)
tmpCarryover += ((tmpBuf[NUM_ALLPASS-1] * gReverbRevIndex) / 256);
tmpCarryover += ((tmpBuf[NUM_ALLPASS-1] * gReverbRevIndex) / 256) + inSample;
delayBufs[0][i][allpassIdx[0][i]] = (tmpBuf[i] * (-gReverbGainIndex) / 256) + tmpCarryover;
if (/*modCheck == 0*/ i == 0)
delayBufs[0][i][allpassIdx[0][i]] += inSample;
tmpCarryover = (delayBufs[0][i][allpassIdx[0][i]] * gReverbGainIndex) / 256;
tmpCarryover += tmpBuf[i];
}