aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/panning.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-04-14 15:20:25 -0700
committerChris Robinson <[email protected]>2011-04-14 15:20:25 -0700
commit319dfce300d85d0fa2c26dbbbfc3d3a953dbcb76 (patch)
tree4866c40cd80c1de1de896ce4ec6b114d2dba20d2 /Alc/panning.c
parentc3e86933d07f394358ac7449d803b1bac6b6e02a (diff)
Fix LFE channel output
Diffstat (limited to 'Alc/panning.c')
-rw-r--r--Alc/panning.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Alc/panning.c b/Alc/panning.c
index 33d3a5b0..a2cb11f0 100644
--- a/Alc/panning.c
+++ b/Alc/panning.c
@@ -249,6 +249,7 @@ ALvoid aluInitPanning(ALCdevice *Device)
SetSpeakerArrangement("layout_51CHN", SpeakerAngle, Speaker2Chan, Device->NumChan);
Matrix[FRONT_LEFT][SIDE_LEFT] = aluSqrt(0.5);
Matrix[FRONT_RIGHT][SIDE_RIGHT] = aluSqrt(0.5);
+ Matrix[LFE][LFE] = 1.0f;
Matrix[BACK_LEFT][SIDE_LEFT] = aluSqrt(0.5);
Matrix[BACK_LEFT][BACK_CENTER] = aluSqrt(0.5);
Matrix[BACK_RIGHT][SIDE_RIGHT] = aluSqrt(0.5);
@@ -270,6 +271,7 @@ ALvoid aluInitPanning(ALCdevice *Device)
SpeakerAngle[4] = 90.0f * M_PI/180.0f;
SpeakerAngle[5] = 180.0f * M_PI/180.0f;
SetSpeakerArrangement("layout_61CHN", SpeakerAngle, Speaker2Chan, Device->NumChan);
+ Matrix[LFE][LFE] = 1.0f;
Matrix[BACK_CENTER][BACK_LEFT] = aluSqrt(0.5);
Matrix[BACK_CENTER][BACK_RIGHT] = aluSqrt(0.5);
Matrix[SIDE_LEFT][BACK_LEFT] = aluSqrt(0.5);
@@ -293,6 +295,7 @@ ALvoid aluInitPanning(ALCdevice *Device)
SpeakerAngle[5] = 90.0f * M_PI/180.0f;
SpeakerAngle[6] = 150.0f * M_PI/180.0f;
SetSpeakerArrangement("layout_71CHN", SpeakerAngle, Speaker2Chan, Device->NumChan);
+ Matrix[LFE][LFE] = 1.0f;
Matrix[BACK_LEFT][BACK_CENTER] = aluSqrt(0.5);
Matrix[BACK_RIGHT][BACK_CENTER] = aluSqrt(0.5);
break;