aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-01-12 21:08:34 -0800
committerChris Robinson <[email protected]>2019-01-12 21:08:34 -0800
commit867161d55f91622a6e1a4266e31e85a5443f7cfe (patch)
treed0eac44940c2e3ab725ca210c357f7e99c428939 /OpenAL32
parent5b382a69b6da10717daa8de388246053df0d27a4 (diff)
Constify some parameters
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alMain.h2
-rw-r--r--OpenAL32/Include/alu.h10
2 files changed, 6 insertions, 6 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 7f7013aa..c8fb31ef 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -597,7 +597,7 @@ struct RealMixParams {
ALsizei NumChannels{0};
};
-using POSTPROCESS = void(*)(ALCdevice *device, ALsizei SamplesToDo);
+using POSTPROCESS = void(*)(ALCdevice *device, const ALsizei SamplesToDo);
struct ALCdevice {
RefCount ref{1u};
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index d8e288f1..b24dbca0 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -334,12 +334,12 @@ struct ALvoice {
void DeinitVoice(ALvoice *voice) noexcept;
-using MixerFunc = void(*)(const ALfloat *data, ALsizei OutChans,
- ALfloat (*RESTRICT OutBuffer)[BUFFERSIZE], ALfloat *CurrentGains,
- const ALfloat *TargetGains, ALsizei Counter, ALsizei OutPos, ALsizei BufferSize);
+using MixerFunc = void(*)(const ALfloat *data, const ALsizei OutChans,
+ ALfloat (*OutBuffer)[BUFFERSIZE], ALfloat *CurrentGains, const ALfloat *TargetGains,
+ const ALsizei Counter, const ALsizei OutPos, const ALsizei BufferSize);
using RowMixerFunc = void(*)(ALfloat *OutBuffer, const ALfloat *gains,
- const ALfloat (*RESTRICT data)[BUFFERSIZE], ALsizei InChans, ALsizei InPos,
- ALsizei BufferSize);
+ const ALfloat (*data)[BUFFERSIZE], const ALsizei InChans, const ALsizei InPos,
+ const ALsizei BufferSize);
using HrtfMixerFunc = void(*)(ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightOut,
const ALfloat *data, ALsizei Offset, const ALsizei OutPos, const ALsizei IrSize,
MixHrtfParams *hrtfparams, HrtfState *hrtfstate, const ALsizei BufferSize);