From 7da2eea8f073aa63d2ef0dfb995510af3463c097 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 28 May 2011 19:35:32 -0700 Subject: Add a 5.1 device format that uses side channels instead of back --- Alc/panning.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Alc/panning.c') 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; -- cgit v1.2.3