diff options
author | Chris Robinson <[email protected]> | 2012-10-15 01:37:37 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-10-15 01:37:37 -0700 |
commit | 4f5aafe59f936084d60f782122ca59db3d51dae0 (patch) | |
tree | 4f46378449241033d67df51e7bef46b3eb4b3005 /Alc/mixer_inc.c | |
parent | a14383d6ccd3f5e373ed3576c8fd2adce27a4597 (diff) |
Put the HRTF DirectParams into an anonymous struct
Diffstat (limited to 'Alc/mixer_inc.c')
-rw-r--r-- | Alc/mixer_inc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Alc/mixer_inc.c b/Alc/mixer_inc.c index e836db45..97266d40 100644 --- a/Alc/mixer_inc.c +++ b/Alc/mixer_inc.c @@ -35,15 +35,15 @@ void MixDirect_Hrtf(const DirectParams *params, const ALfloat *RESTRICT data, AL ALfloat (*RESTRICT DryBuffer)[BUFFERSIZE] = params->OutBuffer; ALfloat *RESTRICT ClickRemoval = params->ClickRemoval; ALfloat *RESTRICT PendingClicks = params->PendingClicks; - const ALuint IrSize = params->Hrtf.IrSize; - const ALint *RESTRICT DelayStep = params->Hrtf.DelayStep; - const ALfloat (*RESTRICT CoeffStep)[2] = params->Hrtf.CoeffStep; - const ALfloat (*RESTRICT TargetCoeffs)[2] = params->Hrtf.Coeffs[srcchan]; - const ALuint *RESTRICT TargetDelay = params->Hrtf.Delay[srcchan]; - ALfloat *RESTRICT History = params->hrtfState->History[srcchan]; - ALfloat (*RESTRICT Values)[2] = params->hrtfState->Values[srcchan]; - ALint Counter = maxu(params->hrtfState->Counter, OutPos) - OutPos; - ALuint Offset = params->hrtfState->Offset + OutPos; + const ALuint IrSize = params->Hrtf.Params.IrSize; + const ALint *RESTRICT DelayStep = params->Hrtf.Params.DelayStep; + const ALfloat (*RESTRICT CoeffStep)[2] = params->Hrtf.Params.CoeffStep; + const ALfloat (*RESTRICT TargetCoeffs)[2] = params->Hrtf.Params.Coeffs[srcchan]; + const ALuint *RESTRICT TargetDelay = params->Hrtf.Params.Delay[srcchan]; + ALfloat *RESTRICT History = params->Hrtf.State->History[srcchan]; + ALfloat (*RESTRICT Values)[2] = params->Hrtf.State->Values[srcchan]; + ALint Counter = maxu(params->Hrtf.State->Counter, OutPos) - OutPos; + ALuint Offset = params->Hrtf.State->Offset + OutPos; ALIGN(16) ALfloat Coeffs[HRIR_LENGTH][2]; ALuint Delay[2]; ALfloat left, right; |