aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_inc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-10-15 01:31:58 -0700
committerChris Robinson <[email protected]>2012-10-15 01:31:58 -0700
commita14383d6ccd3f5e373ed3576c8fd2adce27a4597 (patch)
treeab6df3a28dd0743f8d06565a41da5d45b4fd56d4 /Alc/mixer_inc.c
parentfe1903fb56e918cbbcbf66966c75581788fd9d5b (diff)
Constify the direct and send parameters given to the mixer
Diffstat (limited to 'Alc/mixer_inc.c')
-rw-r--r--Alc/mixer_inc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/mixer_inc.c b/Alc/mixer_inc.c
index 9bbc8fee..e836db45 100644
--- a/Alc/mixer_inc.c
+++ b/Alc/mixer_inc.c
@@ -21,7 +21,7 @@
static __inline void ApplyCoeffsStep(ALuint Offset, ALfloat (*RESTRICT Values)[2],
const ALuint irSize,
ALfloat (*RESTRICT Coeffs)[2],
- ALfloat (*RESTRICT CoeffStep)[2],
+ const ALfloat (*RESTRICT CoeffStep)[2],
ALfloat left, ALfloat right);
static __inline void ApplyCoeffs(ALuint Offset, ALfloat (*RESTRICT Values)[2],
const ALuint irSize,
@@ -29,7 +29,7 @@ static __inline void ApplyCoeffs(ALuint Offset, ALfloat (*RESTRICT Values)[2],
ALfloat left, ALfloat right);
-void MixDirect_Hrtf(DirectParams *params, const ALfloat *RESTRICT data, ALuint srcchan,
+void MixDirect_Hrtf(const DirectParams *params, const ALfloat *RESTRICT data, ALuint srcchan,
ALuint OutPos, ALuint SamplesToDo, ALuint BufferSize)
{
ALfloat (*RESTRICT DryBuffer)[BUFFERSIZE] = params->OutBuffer;
@@ -37,9 +37,9 @@ void MixDirect_Hrtf(DirectParams *params, const ALfloat *RESTRICT data, ALuint s
ALfloat *RESTRICT PendingClicks = params->PendingClicks;
const ALuint IrSize = params->Hrtf.IrSize;
const ALint *RESTRICT DelayStep = params->Hrtf.DelayStep;
- ALfloat (*RESTRICT CoeffStep)[2] = params->Hrtf.CoeffStep;
- ALfloat (*RESTRICT TargetCoeffs)[2] = params->Hrtf.Coeffs[srcchan];
- ALuint *RESTRICT TargetDelay = params->Hrtf.Delay[srcchan];
+ 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;