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/ALu.c | |
parent | a0e4696f5578fa42ec0ac7ac47141bf41fb727ff (diff) |
Make some pointer-to-array parameters const
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -1489,10 +1489,9 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) slot = slotroot; while(slot) { - const ALeffectslot *cslot = slot; - ALeffectState *state = cslot->Params.EffectState; - V(state,process)(SamplesToDo, cslot->WetBuffer, state->OutBuffer, - state->OutChannels); + ALeffectState *state = slot->Params.EffectState; + V(state,process)(SamplesToDo, SAFE_CONST(ALfloatBUFFERSIZE*,slot->WetBuffer), + state->OutBuffer, state->OutChannels); slot = ATOMIC_LOAD(&slot->next, almemory_order_relaxed); } @@ -1540,19 +1539,19 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) { if(device->Dry.Buffer != device->FOAOut.Buffer) bformatdec_upSample(device->AmbiDecoder, - device->Dry.Buffer, device->FOAOut.Buffer, + device->Dry.Buffer, SAFE_CONST(ALfloatBUFFERSIZE*,device->FOAOut.Buffer), device->FOAOut.NumChannels, SamplesToDo ); bformatdec_process(device->AmbiDecoder, device->RealOut.Buffer, device->RealOut.NumChannels, - device->Dry.Buffer, SamplesToDo + SAFE_CONST(ALfloatBUFFERSIZE*,device->Dry.Buffer), SamplesToDo ); } else if(device->AmbiUp) { ambiup_process(device->AmbiUp, device->RealOut.Buffer, device->RealOut.NumChannels, - device->FOAOut.Buffer, SamplesToDo + SAFE_CONST(ALfloatBUFFERSIZE*,device->FOAOut.Buffer), SamplesToDo ); } else if(device->Uhj_Encoder) |