aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-05-06 04:46:21 -0700
committerChris Robinson <[email protected]>2011-05-06 04:46:21 -0700
commit8c3d50be284baf6f16146e88791bf75b7b1183ba (patch)
tree39d0357c46074d9558287a6f71fd61a9d8b93a54 /Alc/ALu.c
parent4198f3062cccc6ddb65e7219726f8d89d17d6994 (diff)
Skip LFE with HRTF output
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index c4eba29f..88680df7 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -321,6 +321,9 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
{
const ALshort *hrtf_left, *hrtf_right;
+ if(c == 3) /* Skip LFE */
+ continue;
+
GetHrtfCoeffs(0.0, angles[c], &hrtf_left, &hrtf_right);
for(i = 0;i < HRTF_LENGTH;i++)
{
@@ -369,6 +372,9 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
{
const ALshort *hrtf_left, *hrtf_right;
+ if(c == 3) /* Skip LFE */
+ continue;
+
GetHrtfCoeffs(0.0, angles[c], &hrtf_left, &hrtf_right);
for(i = 0;i < HRTF_LENGTH;i++)
{
@@ -417,6 +423,9 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
{
const ALshort *hrtf_left, *hrtf_right;
+ if(c == 3) /* Skip LFE */
+ continue;
+
GetHrtfCoeffs(0.0, angles[c], &hrtf_left, &hrtf_right);
for(i = 0;i < HRTF_LENGTH;i++)
{