aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-08-20 11:39:39 -0700
committerChris Robinson <[email protected]>2019-08-20 11:39:39 -0700
commit3fa83547e9d3857ad034fa29bd991111a3753259 (patch)
tree5fa8d76652b86cfcd3445addcdb2de8a4e81f8ce /alc/alu.cpp
parenta19f65f2c8e092e2314295cea5b72e3576490d45 (diff)
Use size_t for HrtfMixer functions' buffer size
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r--alc/alu.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp
index 4a0ea8f9..a7d7cd70 100644
--- a/alc/alu.cpp
+++ b/alc/alu.cpp
@@ -159,6 +159,7 @@ void ALCdevice::ProcessHrtf(const ALsizei SamplesToDo)
const int ridx{RealOut.ChannelIndex[FrontRight]};
ASSUME(lidx >= 0 && ridx >= 0);
+ ASSUME(SamplesToDo >= 0);
MixDirectHrtf(RealOut.Buffer[lidx], RealOut.Buffer[ridx], Dry.Buffer, HrtfAccumData,
mHrtfState.get(), SamplesToDo);
}