diff options
author | Chris Robinson <[email protected]> | 2011-05-25 19:04:19 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-05-25 19:04:19 -0700 |
commit | 6b6a7757ce6a5e0648f007f2b9c4555cf3730e11 (patch) | |
tree | b134fff2c9165ab8272de90e283a36beb23e9095 /Alc | |
parent | 8a6266239c127c6e6e4a2a4b7625868635671df0 (diff) |
Clear HRTF coefficients for the LFE channel
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALu.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -242,8 +242,16 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) { const ALshort *hrtf_left, *hrtf_right; - if(c == lfe_chan) /* Skip LFE */ + if(c == lfe_chan) + { + /* Skip LFE */ + for(i = 0;i < HRTF_LENGTH;i++) + { + ALSource->Params.HrtfCoeffs[c][i][0] = 0.0f; + ALSource->Params.HrtfCoeffs[c][i][1] = 0.0f; + } continue; + } GetHrtfCoeffs(0.0, angles[c], &hrtf_left, &hrtf_right); for(i = 0;i < HRTF_LENGTH;i++) |