From 0b679167c9147fc92aad32487c03dffb5ce6817f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 14 Oct 2012 10:57:11 -0700 Subject: Store some more HRTF info in the DirectParams struct --- Alc/ALu.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Alc/ALu.c') diff --git a/Alc/ALu.c b/Alc/ALu.c index b7209172..821160a8 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -384,6 +384,9 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) } } ALSource->Hrtf.Counter = 0; + ALSource->Params.Direct.Hrtf.IrSize = GetHrtfIrSize(Device->Hrtf); + + ALSource->Params.Direct.hrtfState = &ALSource->Hrtf; } else { @@ -815,6 +818,9 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) ALSource->Params.Direct.Hrtf.Dir[1] = Position[1]; ALSource->Params.Direct.Hrtf.Dir[2] = Position[2]; } + ALSource->Params.Direct.Hrtf.IrSize = GetHrtfIrSize(Device->Hrtf); + + ALSource->Params.Direct.hrtfState = &ALSource->Hrtf; } else { -- cgit v1.2.3