From 2b3c7f211c45616826f0fda721b2ccd3fe53f13a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 3 Aug 2016 08:34:25 -0700 Subject: [PATCH] Add 'restrict' to another parameter --- OpenAL32/Include/alFilter.h | 2 +- OpenAL32/alFilter.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenAL32/Include/alFilter.h b/OpenAL32/Include/alFilter.h index a682d3ba..a74cd211 100644 --- a/OpenAL32/Include/alFilter.h +++ b/OpenAL32/Include/alFilter.h @@ -80,7 +80,7 @@ void ALfilterState_setParams(ALfilterState *filter, ALfilterType type, ALfloat g void ALfilterState_processC(ALfilterState *filter, ALfloat *restrict dst, const ALfloat *restrict src, ALuint numsamples); -inline void ALfilterState_processPassthru(ALfilterState *filter, const ALfloat *src, ALuint numsamples) +inline void ALfilterState_processPassthru(ALfilterState *filter, const ALfloat *restrict src, ALuint numsamples) { if(numsamples >= 2) { diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c index e7382919..daf981d5 100644 --- a/OpenAL32/alFilter.c +++ b/OpenAL32/alFilter.c @@ -36,7 +36,7 @@ extern inline void UnlockFiltersWrite(ALCdevice *device); extern inline struct ALfilter *LookupFilter(ALCdevice *device, ALuint id); extern inline struct ALfilter *RemoveFilter(ALCdevice *device, ALuint id); extern inline void ALfilterState_clear(ALfilterState *filter); -extern inline void ALfilterState_processPassthru(ALfilterState *filter, const ALfloat *src, ALuint numsamples); +extern inline void ALfilterState_processPassthru(ALfilterState *filter, const ALfloat *restrict src, ALuint numsamples); extern inline ALfloat calc_rcpQ_from_slope(ALfloat gain, ALfloat slope); extern inline ALfloat calc_rcpQ_from_bandwidth(ALfloat freq_mult, ALfloat bandwidth); -- 2.11.4.GIT