aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/panning.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-08-28 10:25:40 -0700
committerChris Robinson <[email protected]>2011-08-28 10:25:40 -0700
commit3ab20d4ccbdcaded207cd31ff63c4f9782ba402b (patch)
tree47827352bbf2b6bba3e60bddf5402ca75024410d /Alc/panning.c
parentccc2644e6b8a8af3ee923f4427a326df46f719ea (diff)
Print an error for invalid speaker layout keys
Diffstat (limited to 'Alc/panning.c')
-rw-r--r--Alc/panning.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Alc/panning.c b/Alc/panning.c
index 2757a51f..b225e3ec 100644
--- a/Alc/panning.c
+++ b/Alc/panning.c
@@ -64,7 +64,10 @@ static void SetSpeakerArrangement(const char *name, ALfloat SpeakerAngle[MAXCHAN
sep = strchr(confkey, '=');
if(!sep || confkey == sep)
+ {
+ ERR("Malformed speaker key: %s\n", confkey);
continue;
+ }
end = sep - 1;
while(isspace(*end) && end != confkey)