aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-18 09:52:40 -0700
committerChris Robinson <[email protected]>2011-09-18 09:52:40 -0700
commit25f7c2704382221c9d563a7c1e57c02252eb3dad (patch)
treecbc1a5826fc368ac880a3e7baa1f6805ed21e9d3 /Alc/ALu.c
parentec3b78e52d95752160231bc8eb5ad9647e20b3b9 (diff)
Store the HRTF tables used in the device
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 2b5a6e75..07dc3580 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -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;