diff options
author | Chris Robinson <[email protected]> | 2013-10-07 12:56:41 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-10-07 12:56:41 -0700 |
commit | fc31a414732d1b45f69f66236bb52b8226762db5 (patch) | |
tree | 045deb8197acb3afb7cfa953fde16b898a1153f6 /Alc/effects/modulator.c | |
parent | b3841653c67276f23717b87b47899740ab0028f4 (diff) |
Constify the effect parameter of effect getters
Diffstat (limited to 'Alc/effects/modulator.c')
-rw-r--r-- | Alc/effects/modulator.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/effects/modulator.c b/Alc/effects/modulator.c index 2a3049d9..90fb50d3 100644 --- a/Alc/effects/modulator.c +++ b/Alc/effects/modulator.c @@ -269,7 +269,7 @@ void ALmodulator_setParamiv(ALeffect *effect, ALCcontext *context, ALenum param, ALmodulator_setParami(effect, context, param, vals[0]); } -void ALmodulator_getParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint *val) +void ALmodulator_getParami(const ALeffect *effect, ALCcontext *context, ALenum param, ALint *val) { const ALeffectProps *props = &effect->Props; switch(param) @@ -288,13 +288,13 @@ void ALmodulator_getParami(ALeffect *effect, ALCcontext *context, ALenum param, SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); } } -void ALmodulator_getParamiv(ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals) +void ALmodulator_getParamiv(const ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals) { ALmodulator_getParami(effect, context, param, vals); } -void ALmodulator_getParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val) +void ALmodulator_getParamf(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val) { - ALeffectProps *props = &effect->Props; + const ALeffectProps *props = &effect->Props; switch(param) { case AL_RING_MODULATOR_FREQUENCY: @@ -308,7 +308,7 @@ void ALmodulator_getParamf(ALeffect *effect, ALCcontext *context, ALenum param, SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); } } -void ALmodulator_getParamfv(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals) +void ALmodulator_getParamfv(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals) { ALmodulator_getParamf(effect, context, param, vals); } |