diff options
author | Chris Robinson <[email protected]> | 2011-09-18 09:52:40 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-18 09:52:40 -0700 |
commit | 25f7c2704382221c9d563a7c1e57c02252eb3dad (patch) | |
tree | cbc1a5826fc368ac880a3e7baa1f6805ed21e9d3 /Alc/ALu.c | |
parent | ec3b78e52d95752160231bc8eb5ad9647e20b3b9 (diff) |
Store the HRTF tables used in the device
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -283,7 +283,8 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) { /* Get the static HRIR coefficients and delays for this * channel. */ - GetLerpedHrtfCoeffs(0.0, angles[c] * (M_PI/180.0), + GetLerpedHrtfCoeffs(ALContext->Device->Hrtf, + 0.0, angles[c] * (M_PI/180.0), DryGain*ListenerGain, ALSource->Params.HrtfCoeffs[c], ALSource->Params.HrtfDelay[c]); @@ -722,8 +723,9 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) // coefficients, target delays, steppping values, and counter. if(delta > 0.001f) { - ALSource->HrtfCounter = GetMovingHrtfCoeffs(ev, az, DryGain, - delta, ALSource->HrtfCounter, + ALSource->HrtfCounter = GetMovingHrtfCoeffs(Device->Hrtf, + ev, az, DryGain, delta, + ALSource->HrtfCounter, ALSource->Params.HrtfCoeffs[0], ALSource->Params.HrtfDelay[0], ALSource->Params.HrtfCoeffStep, @@ -737,7 +739,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) else { // Get the initial (static) HRIR coefficients and delays. - GetLerpedHrtfCoeffs(ev, az, DryGain, + GetLerpedHrtfCoeffs(Device->Hrtf, ev, az, DryGain, ALSource->Params.HrtfCoeffs[0], ALSource->Params.HrtfDelay[0]); ALSource->HrtfCounter = 0; |