From 6699f3cf1cd563814ec5c4513613d588a05e2941 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 12 Sep 2019 04:17:21 -0700 Subject: Use unsigned channel indices --- alc/backends/pulseaudio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/backends') 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; } -- cgit v1.2.3