diff options
author | Chris Robinson <[email protected]> | 2009-01-25 19:33:52 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-01-25 19:33:52 -0800 |
commit | bc60818e9a12c026219e1a6608cee6cca1f82b11 (patch) | |
tree | 0885cca6e53aca2bd8fe720fdda421083d484b64 /Alc | |
parent | f82c88f01693c3a70428b3ee4311345ffbbee7d9 (diff) |
Don't read stereo layout when output is mono
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALu.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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: |