diff options
author | Chris Robinson <[email protected]> | 2017-06-16 19:00:00 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-06-16 19:00:00 -0700 |
commit | 879b79740f0566bf56d7e8a7f636ce404c1a692d (patch) | |
tree | c3c0fd3957d46ea39f1c447d78f64bf54006f438 /Alc/hrtf.c | |
parent | e18f7ca3e401fc8d0ad56eeed3cc03b81697853f (diff) |
Round the B-Format HRTF response where the multiple is defined
Diffstat (limited to 'Alc/hrtf.c')
-rw-r--r-- | Alc/hrtf.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -284,8 +284,10 @@ ALsizei BuildBFormatHrtf(const struct Hrtf *Hrtf, DirectHrtfState *state, ALsize } } } - TRACE("Skipped min delay: %d, new combined length: %d\n", min_delay, max_length); + /* Round up to the next IR size multiple. */ + max_length = RoundUp(max_length, MOD_IR_SIZE); + TRACE("Skipped min delay: %d, new combined length: %d\n", min_delay, max_length); return max_length; #undef NUM_BANDS } |