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/alc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'alc/alc.cpp') 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(); -- cgit v1.2.3