Better Octave Drop logic (#6796)

This commit is contained in:
jdperos
2026-06-27 11:28:40 -04:00
committed by GitHub
parent 633e920969
commit 003a009ebc
+5 -1
View File
@@ -121,7 +121,11 @@ void Audio_NoteSetResamplingRate(NoteSubEu* noteSubEu, f32 resamplingRateInput)
noteSubEu->bitField1.hasTwoParts = true;
if (3.99996f < resamplingRateInput) {
if (CVarGetInteger(CVAR_AUDIO("ExperimentalOctaveDrop"), 0) || noteSubEu->bitField1.isSyntheticWave) {
resamplingRate = resamplingRateInput * 0.25;
resamplingRate = resamplingRateInput * 0.5f;
while (resamplingRate > 1.99998f) {
resamplingRate *= 0.5f;
}
} else {
resamplingRate = 1.99998f;
}