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/backends | |
parent | 4c76f32ddac5145231609b1cb4f28028abed814b (diff) |
Use unsigned channel indices
Diffstat (limited to 'alc/backends')
-rw-r--r-- | alc/backends/pulseaudio.cpp | 4 |
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; } |