From 8c3d50be284baf6f16146e88791bf75b7b1183ba Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 6 May 2011 04:46:21 -0700 Subject: Skip LFE with HRTF output --- Alc/ALu.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Alc') 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++) { -- cgit v1.2.3