From 3ab20d4ccbdcaded207cd31ff63c4f9782ba402b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 28 Aug 2011 10:25:40 -0700 Subject: Print an error for invalid speaker layout keys --- Alc/panning.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Alc') 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) -- cgit v1.2.3