diff options
author | Chris Robinson <[email protected]> | 2011-05-28 19:35:32 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-05-28 19:35:32 -0700 |
commit | 7da2eea8f073aa63d2ef0dfb995510af3463c097 (patch) | |
tree | a70b139a5d252a6b3c17d3542e7a594402d2796f /Alc/panning.c | |
parent | 596a1af7d97d9ca34bad6bd1b64296d97a94c864 (diff) |
Add a 5.1 device format that uses side channels instead of back
Diffstat (limited to 'Alc/panning.c')
-rw-r--r-- | Alc/panning.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Alc/panning.c b/Alc/panning.c index a5a92298..8df70f30 100644 --- a/Alc/panning.c +++ b/Alc/panning.c @@ -217,6 +217,21 @@ ALvoid aluInitPanning(ALCdevice *Device) SetSpeakerArrangement("layout_51CHN", SpeakerAngle, Speaker2Chan, Device->NumChan); break; + case DevFmtX51Side: + Device->NumChan = 5; + Speaker2Chan[0] = SIDE_LEFT; + Speaker2Chan[1] = FRONT_LEFT; + Speaker2Chan[2] = FRONT_CENTER; + Speaker2Chan[3] = FRONT_RIGHT; + Speaker2Chan[4] = SIDE_RIGHT; + SpeakerAngle[0] = -90.0f * M_PI/180.0f; + SpeakerAngle[1] = -30.0f * M_PI/180.0f; + SpeakerAngle[2] = 0.0f * M_PI/180.0f; + SpeakerAngle[3] = 30.0f * M_PI/180.0f; + SpeakerAngle[4] = 90.0f * M_PI/180.0f; + SetSpeakerArrangement("layout_51SIDECHN", SpeakerAngle, Speaker2Chan, Device->NumChan); + break; + case DevFmtX61: Device->NumChan = 6; Speaker2Chan[0] = SIDE_LEFT; |