aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-12 04:17:21 -0700
committerChris Robinson <[email protected]>2019-09-12 04:17:21 -0700
commit6699f3cf1cd563814ec5c4513613d588a05e2941 (patch)
treedafedbf37905362a75c37df184f73843c30f6b33 /alc/backends
parent4c76f32ddac5145231609b1cb4f28028abed814b (diff)
Use unsigned channel indices
Diffstat (limited to 'alc/backends')
-rw-r--r--alc/backends/pulseaudio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/backends/pulseaudio.cpp b/alc/backends/pulseaudio.cpp
index 499a192f..c1e615ae 100644
--- a/alc/backends/pulseaudio.cpp
+++ b/alc/backends/pulseaudio.cpp
@@ -278,8 +278,8 @@ size_t ChannelFromPulse(pa_channel_position_t chan)
void SetChannelOrderFromMap(ALCdevice *device, const pa_channel_map &chanmap)
{
- device->RealOut.ChannelIndex.fill(-1);
- for(int i{0};i < chanmap.channels;++i)
+ device->RealOut.ChannelIndex.fill(INVALID_CHANNEL_INDEX);
+ for(ALuint i{0};i < chanmap.channels;++i)
device->RealOut.ChannelIndex[ChannelFromPulse(chanmap.map[i])] = i;
}