aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-01-25 19:33:52 -0800
committerChris Robinson <[email protected]>2009-01-25 19:33:52 -0800
commitbc60818e9a12c026219e1a6608cee6cca1f82b11 (patch)
tree0885cca6e53aca2bd8fe720fdda421083d484b64 /Alc
parentf82c88f01693c3a70428b3ee4311345ffbbee7d9 (diff)
Don't read stereo layout when output is mono
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index e29cb025..8835a2d3 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -366,6 +366,13 @@ ALvoid aluInitPanning(ALCcontext *Context)
case AL_FORMAT_MONO8:
case AL_FORMAT_MONO16:
case AL_FORMAT_MONO_FLOAT32:
+ Context->NumChan = 2;
+ Speaker2Chan[0] = FRONT_LEFT;
+ Speaker2Chan[1] = FRONT_RIGHT;
+ SpeakerAngle[0] = -90.0f * M_PI/180.0f;
+ SpeakerAngle[1] = 90.0f * M_PI/180.0f;
+ break;
+
case AL_FORMAT_STEREO8:
case AL_FORMAT_STEREO16:
case AL_FORMAT_STEREO_FLOAT32: