summaryrefslogtreecommitdiffstats
path: root/Alc/effects/compressor.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-07 12:56:41 -0700
committerChris Robinson <[email protected]>2013-10-07 12:56:41 -0700
commitfc31a414732d1b45f69f66236bb52b8226762db5 (patch)
tree045deb8197acb3afb7cfa953fde16b898a1153f6 /Alc/effects/compressor.c
parentb3841653c67276f23717b87b47899740ab0028f4 (diff)
Constify the effect parameter of effect getters
Diffstat (limited to 'Alc/effects/compressor.c')
-rw-r--r--Alc/effects/compressor.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/Alc/effects/compressor.c b/Alc/effects/compressor.c
index 4bee76ce..ea035fa7 100644
--- a/Alc/effects/compressor.c
+++ b/Alc/effects/compressor.c
@@ -173,21 +173,18 @@ void ALcompressor_setParami(ALeffect *effect, ALCcontext *context, ALenum param,
SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
}
-
void ALcompressor_setParamiv(ALeffect *effect, ALCcontext *context, ALenum param, const ALint *vals)
{
ALcompressor_setParami(effect, context, param, vals[0]);
}
-
void ALcompressor_setParamf(ALeffect *UNUSED(effect), ALCcontext *context, ALenum UNUSED(param), ALfloat UNUSED(val))
{ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); }
-
void ALcompressor_setParamfv(ALeffect *effect, ALCcontext *context, ALenum param, const ALfloat *vals)
{
ALcompressor_setParamf(effect, context, param, vals[0]);
}
-void ALcompressor_getParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint *val)
+void ALcompressor_getParami(const ALeffect *effect, ALCcontext *context, ALenum param, ALint *val)
{
const ALeffectProps *props = &effect->Props;
switch(param)
@@ -199,14 +196,13 @@ void ALcompressor_getParami(ALeffect *effect, ALCcontext *context, ALenum param,
SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
}
-void ALcompressor_getParamiv(ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
+void ALcompressor_getParamiv(const ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
{
ALcompressor_getParami(effect, context, param, vals);
}
-void ALcompressor_getParamf(ALeffect *UNUSED(effect), ALCcontext *context, ALenum UNUSED(param), ALfloat *UNUSED(val))
+void ALcompressor_getParamf(const ALeffect *UNUSED(effect), ALCcontext *context, ALenum UNUSED(param), ALfloat *UNUSED(val))
{ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); }
-
-void ALcompressor_getParamfv(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
+void ALcompressor_getParamfv(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
{
ALcompressor_getParamf(effect, context, param, vals);
}