diff options
author | Chris Robinson <[email protected]> | 2019-09-12 04:17:21 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-12 04:17:21 -0700 |
commit | 6699f3cf1cd563814ec5c4513613d588a05e2941 (patch) | |
tree | dafedbf37905362a75c37df184f73843c30f6b33 /alc/mixvoice.cpp | |
parent | 4c76f32ddac5145231609b1cb4f28028abed814b (diff) |
Use unsigned channel indices
Diffstat (limited to 'alc/mixvoice.cpp')
-rw-r--r-- | alc/mixvoice.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/alc/mixvoice.cpp b/alc/mixvoice.cpp index 09b76fb7..98b86c9a 100644 --- a/alc/mixvoice.cpp +++ b/alc/mixvoice.cpp @@ -641,9 +641,8 @@ void ALvoice::mix(State vstate, ALCcontext *Context, const ALuint SamplesToDo) if((mFlags&VOICE_HAS_HRTF)) { - const int OutLIdx{GetChannelIdxByName(Device->RealOut, FrontLeft)}; - const int OutRIdx{GetChannelIdxByName(Device->RealOut, FrontRight)}; - ASSUME(OutLIdx >= 0 && OutRIdx >= 0); + const ALuint OutLIdx{GetChannelIdxByName(Device->RealOut, FrontLeft)}; + const ALuint OutRIdx{GetChannelIdxByName(Device->RealOut, FrontRight)}; auto &HrtfSamples = Device->HrtfSourceData; auto &AccumSamples = Device->HrtfAccumData; |