diff options
author | Chris Robinson <[email protected]> | 2019-08-25 15:36:40 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-08-25 15:36:40 -0700 |
commit | 88a8bf903b08cd93ea7028a4c726f39e4cde7c79 (patch) | |
tree | b24161d1c89d9335262787a8b0c7c930f2976c0e /alc/alu.cpp | |
parent | e165cae3cddec51332660bdb1e69d7fa5f687e68 (diff) |
Use size_t for the post-process sample length
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r-- | alc/alu.cpp | 9 |
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); |