mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-06-28 03:13:18 -04:00
Better Octave Drop logic (#6796)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user