diff options
author | Chris Robinson <[email protected]> | 2012-10-14 10:57:11 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-10-14 10:57:11 -0700 |
commit | 0b679167c9147fc92aad32487c03dffb5ce6817f (patch) | |
tree | 9dbe9bd30451859d2a9fc83eda4ed81a28ac426d /Alc/ALu.c | |
parent | 5ac0a93fbab37cfce1b1a2546295eee37e7ee2d4 (diff) |
Store some more HRTF info in the DirectParams struct
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 { |