aboutsummaryrefslogtreecommitdiffstats
path: root/alc/panning.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alc/panning.cpp')
-rw-r--r--alc/panning.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/panning.cpp b/alc/panning.cpp
index 31daf455..b5394cbc 100644
--- a/alc/panning.cpp
+++ b/alc/panning.cpp
@@ -219,7 +219,7 @@ bool MakeSpeakerMap(ALCdevice *device, const AmbDecConf *conf, ALuint (&speakerm
else
{
ERR("AmbDec speaker label \"%s\" not recognized\n", name);
- return -1;
+ return INVALID_CHANNEL_INDEX;
}
}
const ALuint chidx{GetChannelIdxByName(device->RealOut, ch)};