aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/bformatdec.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-06-05 18:54:17 -0700
committerChris Robinson <[email protected]>2019-06-05 18:54:17 -0700
commit410a5ca62129f03ba7cfc091fa63fc451cdfc24f (patch)
tree6f14211e49659360cae962653eb78a739ec9c9c6 /Alc/bformatdec.cpp
parent5f26205f8fb504c5f6fec3e2b02f0009a4f24be2 (diff)
Make RealMixParams channel count unsigned
Diffstat (limited to 'Alc/bformatdec.cpp')
-rw-r--r--Alc/bformatdec.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Alc/bformatdec.cpp b/Alc/bformatdec.cpp
index 5d9b3503..6d2dbfbe 100644
--- a/Alc/bformatdec.cpp
+++ b/Alc/bformatdec.cpp
@@ -146,7 +146,8 @@ BFormatDec::BFormatDec(const ALsizei inchans, const ALsizei chancount,
}
-void BFormatDec::process(FloatBufferLine *OutBuffer, const ALsizei OutChannels, const FloatBufferLine *InSamples, const ALsizei SamplesToDo)
+void BFormatDec::process(FloatBufferLine *OutBuffer, const ALuint OutChannels,
+ const FloatBufferLine *InSamples, const ALsizei SamplesToDo)
{
ASSUME(OutChannels > 0);
ASSUME(mNumChannels > 0);
@@ -159,7 +160,7 @@ void BFormatDec::process(FloatBufferLine *OutBuffer, const ALsizei OutChannels,
const al::span<const FloatBufferLine> hfsamples{mSamplesHF, mSamplesHF+mNumChannels};
const al::span<const FloatBufferLine> lfsamples{mSamplesLF, mSamplesLF+mNumChannels};
- for(ALsizei chan{0};chan < OutChannels;chan++)
+ for(ALuint chan{0};chan < OutChannels;chan++)
{
if(UNLIKELY(!(mEnabled&(1<<chan))))
continue;
@@ -171,7 +172,7 @@ void BFormatDec::process(FloatBufferLine *OutBuffer, const ALsizei OutChannels,
else
{
const al::span<const FloatBufferLine> insamples{InSamples, InSamples+mNumChannels};
- for(ALsizei chan{0};chan < OutChannels;chan++)
+ for(ALuint chan{0};chan < OutChannels;chan++)
{
if(UNLIKELY(!(mEnabled&(1<<chan))))
continue;