aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-11 10:55:35 -0800
committerChris Robinson <[email protected]>2018-01-11 10:55:35 -0800
commit2873abcbc056ca2123382b2b1e08b8bd94d608a4 (patch)
treedfaaa84add6095c352acc1086b1a0c22899777cd /Alc/hrtf.c
parente89c183231d26770f4c8ae80a8d05063c34cf0c9 (diff)
Fix up some types for MSVC
Diffstat (limited to 'Alc/hrtf.c')
-rw-r--r--Alc/hrtf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/hrtf.c b/Alc/hrtf.c
index 9d5e2ca9..310dc68c 100644
--- a/Alc/hrtf.c
+++ b/Alc/hrtf.c
@@ -298,7 +298,8 @@ void BuildBFormatHrtf(const struct Hrtf *Hrtf, DirectHrtfState *state, ALsizei N
}
}
/* Round up to the next IR size multiple. */
- max_length = RoundUp(max_length, MOD_IR_SIZE);
+ max_length += MOD_IR_SIZE-1;
+ max_length -= max_length%MOD_IR_SIZE;
TRACE("Skipped min delay: %d, new combined length: %d\n", min_delay, max_length);
state->IrSize = max_length;