aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-08-25 15:36:40 -0700
committerChris Robinson <[email protected]>2019-08-25 15:36:40 -0700
commit88a8bf903b08cd93ea7028a4c726f39e4cde7c79 (patch)
treeb24161d1c89d9335262787a8b0c7c930f2976c0e /alc/alu.cpp
parente165cae3cddec51332660bdb1e69d7fa5f687e68 (diff)
Use size_t for the post-process sample length
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r--alc/alu.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp
index a7d7cd70..c961f5d5 100644
--- a/alc/alu.cpp
+++ b/alc/alu.cpp
@@ -152,24 +152,23 @@ void aluInit(void)
}
-void ALCdevice::ProcessHrtf(const ALsizei SamplesToDo)
+void ALCdevice::ProcessHrtf(const size_t SamplesToDo)
{
/* HRTF is stereo output only. */
const int lidx{RealOut.ChannelIndex[FrontLeft]};
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);
}
-void ALCdevice::ProcessAmbiDec(const ALsizei SamplesToDo)
+void ALCdevice::ProcessAmbiDec(const size_t SamplesToDo)
{
AmbiDecoder->process(RealOut.Buffer, Dry.Buffer.data(), SamplesToDo);
}
-void ALCdevice::ProcessUhj(const ALsizei SamplesToDo)
+void ALCdevice::ProcessUhj(const size_t SamplesToDo)
{
/* UHJ is stereo output only. */
const int lidx{RealOut.ChannelIndex[FrontLeft]};
@@ -181,7 +180,7 @@ void ALCdevice::ProcessUhj(const ALsizei SamplesToDo)
SamplesToDo);
}
-void ALCdevice::ProcessBs2b(const ALsizei SamplesToDo)
+void ALCdevice::ProcessBs2b(const size_t SamplesToDo)
{
/* First, decode the ambisonic mix to the "real" output. */
AmbiDecoder->process(RealOut.Buffer, Dry.Buffer.data(), SamplesToDo);