diff options
author | Chris Robinson <[email protected]> | 2021-01-06 17:19:10 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-01-06 17:19:10 -0800 |
commit | a9ac165c39601dfe298752f6ca0c731eba7ceeb4 (patch) | |
tree | e2ecce016f36c6548c820f8fa639b8f92cc7c4da /alc | |
parent | 292de73c75a8a3895c7d54e59b633787a7d1d9b0 (diff) |
Properly trace the new HRTF delay for the B-Format decoder
Diffstat (limited to 'alc')
-rw-r--r-- | alc/hrtf.cpp | 4 |
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}, |