aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-01-06 17:19:10 -0800
committerChris Robinson <[email protected]>2021-01-06 17:19:10 -0800
commita9ac165c39601dfe298752f6ca0c731eba7ceeb4 (patch)
treee2ecce016f36c6548c820f8fa639b8f92cc7c4da /alc
parent292de73c75a8a3895c7d54e59b633787a7d1d9b0 (diff)
Properly trace the new HRTF delay for the B-Format decoder
Diffstat (limited to 'alc')
-rw-r--r--alc/hrtf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/hrtf.cpp b/alc/hrtf.cpp
index c790b415..717f467c 100644
--- a/alc/hrtf.cpp
+++ b/alc/hrtf.cpp
@@ -367,8 +367,8 @@ void DirectHrtfState::build(const HrtfStore *Hrtf, const uint irSize,
}
tmpres.clear();
- max_delay = hrir_delay_round(max_delay - min_delay);
- const uint max_length{minu(max_delay + irSize, HrirLength)};
+ max_delay -= min_delay;
+ const uint max_length{minu(hrir_delay_round(max_delay) + irSize, HrirLength)};
TRACE("Skipped delay: %.2f, new max delay: %.2f, FIR length: %u\n",
min_delay/double{HrirDelayFracOne}, max_delay/double{HrirDelayFracOne},