diff options
author | Chris Robinson <[email protected]> | 2016-10-04 16:25:43 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-10-04 16:25:43 -0700 |
commit | 9349ee9002c5cf2cd7906c9444292285529a91e9 (patch) | |
tree | e1574d31cc21e467162d234d8d66311d9d93c54d /Alc/mixer_c.c | |
parent | a0e4696f5578fa42ec0ac7ac47141bf41fb727ff (diff) |
Make some pointer-to-array parameters const
Diffstat (limited to 'Alc/mixer_c.c')
-rw-r--r-- | Alc/mixer_c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c index c74729a8..3e726df5 100644 --- a/Alc/mixer_c.c +++ b/Alc/mixer_c.c @@ -208,7 +208,7 @@ void Mix_C(const ALfloat *data, ALuint OutChans, ALfloat (*restrict OutBuffer)[B * transform. And as the matrices are more or less static once set up, no * stepping is necessary. */ -void MixRow_C(ALfloat *OutBuffer, const ALfloat *Gains, ALfloat (*restrict data)[BUFFERSIZE], ALuint InChans, ALuint BufferSize) +void MixRow_C(ALfloat *OutBuffer, const ALfloat *Gains, const ALfloat (*restrict data)[BUFFERSIZE], ALuint InChans, ALuint InPos, ALuint BufferSize) { ALuint c, i; @@ -219,6 +219,6 @@ void MixRow_C(ALfloat *OutBuffer, const ALfloat *Gains, ALfloat (*restrict data) continue; for(i = 0;i < BufferSize;i++) - OutBuffer[i] += data[c][i] * gain; + OutBuffer[i] += data[c][InPos+i] * gain; } } |