aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_inc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-05-18 09:31:08 -0700
committerChris Robinson <[email protected]>2014-05-18 09:31:08 -0700
commit5a1abf69189463312787921f5a3cf5fd35bf65c2 (patch)
treee48f2cd51f7aa4bfe2a92489bf82445f2d9d98d3 /Alc/mixer_inc.c
parent29b5dae6aa010224b2fd428530e1cd67d6d92e1a (diff)
Use different parameters for HRTF mixers
Diffstat (limited to 'Alc/mixer_inc.c')
-rw-r--r--Alc/mixer_inc.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/Alc/mixer_inc.c b/Alc/mixer_inc.c
index b75ddad3..f22190d8 100644
--- a/Alc/mixer_inc.c
+++ b/Alc/mixer_inc.c
@@ -25,14 +25,11 @@ static inline void ApplyCoeffs(ALuint Offset, ALfloat (*restrict Values)[2],
ALfloat left, ALfloat right);
-void MixDirect_Hrtf(DirectParams *params,
- ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *restrict data,
- ALuint Counter, ALuint srcchan, ALuint OutPos, ALuint BufferSize)
+void MixDirect_Hrtf(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data,
+ ALuint Counter, ALuint Offset, const ALuint IrSize,
+ const HrtfParams *hrtfparams, HrtfState *hrtfstate,
+ ALuint OutPos, ALuint BufferSize)
{
- const ALuint IrSize = params->Mix.Hrtf.IrSize;
- const HrtfParams *hrtfparams = &params->Mix.Hrtf.Params[srcchan];
- HrtfState *hrtfstate = &params->Mix.Hrtf.State[srcchan];
- ALuint Offset = params->Offset + OutPos;
alignas(16) ALfloat Coeffs[HRIR_LENGTH][2];
ALuint Delay[2];
ALfloat left, right;
@@ -95,6 +92,3 @@ void MixDirect_Hrtf(DirectParams *params,
#undef MERGE2
#undef REAL_MERGE2
-
-#undef UNLIKELY
-#undef LIKELY