summaryrefslogtreecommitdiff
path: root/soh/src
diff options
context:
space:
mode:
authorjdperos <jperos@jenova.games>2026-06-27 11:28:40 -0400
committerGitHub <noreply@github.com>2026-06-27 15:28:40 +0000
commit003a009ebcc638bd455e37f4845ffb2e524e17a1 (patch)
treee289d5b0ac10080996e0825c55b8377a8094ad84 /soh/src
parent633e92096964ce036e7c18426c98a4835e1aace5 (diff)
Better Octave Drop logic (#6796)
Diffstat (limited to 'soh/src')
-rw-r--r--soh/src/code/audio_playback.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/soh/src/code/audio_playback.c b/soh/src/code/audio_playback.c
index 656912378..ce6c5d6f1 100644
--- a/soh/src/code/audio_playback.c
+++ b/soh/src/code/audio_playback.c
@@ -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;
}