aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
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/alc.cpp
parent4c76f32ddac5145231609b1cb4f28028abed814b (diff)
Use unsigned channel indices
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 10ab3b94..a819bbf7 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -1409,7 +1409,7 @@ static ALCboolean IsValidAmbiScaling(ALCenum scaling)
*/
void SetDefaultWFXChannelOrder(ALCdevice *device)
{
- device->RealOut.ChannelIndex.fill(-1);
+ device->RealOut.ChannelIndex.fill(INVALID_CHANNEL_INDEX);
switch(device->FmtChans)
{
@@ -1497,7 +1497,7 @@ void SetDefaultWFXChannelOrder(ALCdevice *device)
*/
void SetDefaultChannelOrder(ALCdevice *device)
{
- device->RealOut.ChannelIndex.fill(-1);
+ device->RealOut.ChannelIndex.fill(INVALID_CHANNEL_INDEX);
switch(device->FmtChans)
{
@@ -1849,7 +1849,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
device->Dry.AmbiMap.fill(BFChannelConfig{});
device->Dry.Buffer = {};
std::fill(std::begin(device->NumChannelsPerOrder), std::end(device->NumChannelsPerOrder), 0u);
- device->RealOut.ChannelIndex.fill(-1);
+ device->RealOut.ChannelIndex.fill(INVALID_CHANNEL_INDEX);
device->RealOut.Buffer = {};
device->MixBuffer.clear();
device->MixBuffer.shrink_to_fit();