aboutsummaryrefslogtreecommitdiffstats
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
parentb3841653c67276f23717b87b47899740ab0028f4 (diff)
Constify the effect parameter of effect getters
-rw-r--r--Alc/effects/autowah.c11
-rw-r--r--Alc/effects/chorus.c8
-rw-r--r--Alc/effects/compressor.c12
-rw-r--r--Alc/effects/dedicated.c8
-rw-r--r--Alc/effects/distortion.c8
-rw-r--r--Alc/effects/echo.c8
-rw-r--r--Alc/effects/equalizer.c8
-rw-r--r--Alc/effects/flanger.c8
-rw-r--r--Alc/effects/modulator.c10
-rw-r--r--Alc/effects/null.c8
-rw-r--r--Alc/effects/reverb.c16
-rw-r--r--OpenAL32/Include/alEffect.h8
12 files changed, 53 insertions, 60 deletions
diff --git a/Alc/effects/autowah.c b/Alc/effects/autowah.c
index e6e45273..1b2e166d 100644
--- a/Alc/effects/autowah.c
+++ b/Alc/effects/autowah.c
@@ -200,7 +200,6 @@ void ALautowah_setParamiv(ALeffect *effect, ALCcontext *context, ALenum param, c
{
ALautowah_setParami(effect, context, param, vals[0]);
}
-
void ALautowah_setParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat val)
{
ALeffectProps *props = &effect->Props;
@@ -234,19 +233,18 @@ void ALautowah_setParamf(ALeffect *effect, ALCcontext *context, ALenum param, AL
SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
}
-
void ALautowah_setParamfv(ALeffect *effect, ALCcontext *context, ALenum param, const ALfloat *vals)
{
ALautowah_setParamf(effect, context, param, vals[0]);
}
-void ALautowah_getParami(ALeffect *UNUSED(effect), ALCcontext *context, ALenum UNUSED(param), ALint *UNUSED(val))
+void ALautowah_getParami(const ALeffect *UNUSED(effect), ALCcontext *context, ALenum UNUSED(param), ALint *UNUSED(val))
{ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); }
-void ALautowah_getParamiv(ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
+void ALautowah_getParamiv(const ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
{
ALautowah_getParami(effect, context, param, vals);
}
-void ALautowah_getParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val)
+void ALautowah_getParamf(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val)
{
const ALeffectProps *props = &effect->Props;
switch(param)
@@ -271,8 +269,7 @@ void ALautowah_getParamf(ALeffect *effect, ALCcontext *context, ALenum param, AL
SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
}
-
-void ALautowah_getParamfv(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
+void ALautowah_getParamfv(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
{
ALautowah_getParamf(effect, context, param, vals);
}
diff --git a/Alc/effects/chorus.c b/Alc/effects/chorus.c
index 9e889847..50b5c54a 100644
--- a/Alc/effects/chorus.c
+++ b/Alc/effects/chorus.c
@@ -339,7 +339,7 @@ void ALchorus_setParamfv(ALeffect *effect, ALCcontext *context, ALenum param, co
ALchorus_setParamf(effect, context, param, vals[0]);
}
-void ALchorus_getParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint *val)
+void ALchorus_getParami(const ALeffect *effect, ALCcontext *context, ALenum param, ALint *val)
{
const ALeffectProps *props = &effect->Props;
switch(param)
@@ -356,11 +356,11 @@ void ALchorus_getParami(ALeffect *effect, ALCcontext *context, ALenum param, ALi
SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
}
-void ALchorus_getParamiv(ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
+void ALchorus_getParamiv(const ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
{
ALchorus_getParami(effect, context, param, vals);
}
-void ALchorus_getParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val)
+void ALchorus_getParamf(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val)
{
const ALeffectProps *props = &effect->Props;
switch(param)
@@ -385,7 +385,7 @@ void ALchorus_getParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALf
SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
}
-void ALchorus_getParamfv(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
+void ALchorus_getParamfv(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
{
ALchorus_getParamf(effect, context, param, vals);
}
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);
}
diff --git a/Alc/effects/dedicated.c b/Alc/effects/dedicated.c
index 3ce41978..ecf177cb 100644
--- a/Alc/effects/dedicated.c
+++ b/Alc/effects/dedicated.c
@@ -148,13 +148,13 @@ void ALdedicated_setParamfv(ALeffect *effect, ALCcontext *context, ALenum param,
ALdedicated_setParamf(effect, context, param, vals[0]);
}
-void ALdedicated_getParami(ALeffect *UNUSED(effect), ALCcontext *context, ALenum UNUSED(param), ALint *UNUSED(val))
+void ALdedicated_getParami(const ALeffect *UNUSED(effect), ALCcontext *context, ALenum UNUSED(param), ALint *UNUSED(val))
{ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); }
-void ALdedicated_getParamiv(ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
+void ALdedicated_getParamiv(const ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
{
ALdedicated_getParami(effect, context, param, vals);
}
-void ALdedicated_getParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val)
+void ALdedicated_getParamf(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val)
{
const ALeffectProps *props = &effect->Props;
switch(param)
@@ -167,7 +167,7 @@ void ALdedicated_getParamf(ALeffect *effect, ALCcontext *context, ALenum param,
SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
}
-void ALdedicated_getParamfv(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
+void ALdedicated_getParamfv(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
{
ALdedicated_getParamf(effect, context, param, vals);
}
diff --git a/Alc/effects/distortion.c b/Alc/effects/distortion.c
index 4ceb9648..5c6b0497 100644
--- a/Alc/effects/distortion.c
+++ b/Alc/effects/distortion.c
@@ -265,13 +265,13 @@ void ALdistortion_setParamfv(ALeffect *effect, ALCcontext *context, ALenum param
ALdistortion_setParamf(effect, context, param, vals[0]);
}
-void ALdistortion_getParami(ALeffect *UNUSED(effect), ALCcontext *context, ALenum UNUSED(param), ALint *UNUSED(val))
+void ALdistortion_getParami(const ALeffect *UNUSED(effect), ALCcontext *context, ALenum UNUSED(param), ALint *UNUSED(val))
{ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); }
-void ALdistortion_getParamiv(ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
+void ALdistortion_getParamiv(const ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
{
ALdistortion_getParami(effect, context, param, vals);
}
-void ALdistortion_getParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val)
+void ALdistortion_getParamf(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val)
{
const ALeffectProps *props = &effect->Props;
switch(param)
@@ -300,7 +300,7 @@ void ALdistortion_getParamf(ALeffect *effect, ALCcontext *context, ALenum param,
SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
}
-void ALdistortion_getParamfv(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
+void ALdistortion_getParamfv(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
{
ALdistortion_getParamf(effect, context, param, vals);
}
diff --git a/Alc/effects/echo.c b/Alc/effects/echo.c
index 1305921c..18c32f17 100644
--- a/Alc/effects/echo.c
+++ b/Alc/effects/echo.c
@@ -262,13 +262,13 @@ void ALecho_setParamfv(ALeffect *effect, ALCcontext *context, ALenum param, cons
ALecho_setParamf(effect, context, param, vals[0]);
}
-void ALecho_getParami(ALeffect *UNUSED(effect), ALCcontext *context, ALenum UNUSED(param), ALint *UNUSED(val))
+void ALecho_getParami(const ALeffect *UNUSED(effect), ALCcontext *context, ALenum UNUSED(param), ALint *UNUSED(val))
{ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); }
-void ALecho_getParamiv(ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
+void ALecho_getParamiv(const ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
{
ALecho_getParami(effect, context, param, vals);
}
-void ALecho_getParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val)
+void ALecho_getParamf(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val)
{
const ALeffectProps *props = &effect->Props;
switch(param)
@@ -297,7 +297,7 @@ void ALecho_getParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALflo
SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
}
-void ALecho_getParamfv(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
+void ALecho_getParamfv(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
{
ALecho_getParamf(effect, context, param, vals);
}
diff --git a/Alc/effects/equalizer.c b/Alc/effects/equalizer.c
index 7b3b508d..dba6cc3a 100644
--- a/Alc/effects/equalizer.c
+++ b/Alc/effects/equalizer.c
@@ -283,13 +283,13 @@ void ALequalizer_setParamfv(ALeffect *effect, ALCcontext *context, ALenum param,
ALequalizer_setParamf(effect, context, param, vals[0]);
}
-void ALequalizer_getParami(ALeffect *UNUSED(effect), ALCcontext *context, ALenum UNUSED(param), ALint *UNUSED(val))
+void ALequalizer_getParami(const ALeffect *UNUSED(effect), ALCcontext *context, ALenum UNUSED(param), ALint *UNUSED(val))
{ SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); }
-void ALequalizer_getParamiv(ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
+void ALequalizer_getParamiv(const ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
{
ALequalizer_getParami(effect, context, param, vals);
}
-void ALequalizer_getParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val)
+void ALequalizer_getParamf(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val)
{
const ALeffectProps *props = &effect->Props;
switch(param)
@@ -338,7 +338,7 @@ void ALequalizer_getParamf(ALeffect *effect, ALCcontext *context, ALenum param,
SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
}
-void ALequalizer_getParamfv(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
+void ALequalizer_getParamfv(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
{
ALequalizer_getParamf(effect, context, param, vals);
}
diff --git a/Alc/effects/flanger.c b/Alc/effects/flanger.c
index 25a13934..644426ca 100644
--- a/Alc/effects/flanger.c
+++ b/Alc/effects/flanger.c
@@ -339,7 +339,7 @@ void ALflanger_setParamfv(ALeffect *effect, ALCcontext *context, ALenum param, c
ALflanger_setParamf(effect, context, param, vals[0]);
}
-void ALflanger_getParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint *val)
+void ALflanger_getParami(const ALeffect *effect, ALCcontext *context, ALenum param, ALint *val)
{
const ALeffectProps *props = &effect->Props;
switch(param)
@@ -356,11 +356,11 @@ void ALflanger_getParami(ALeffect *effect, ALCcontext *context, ALenum param, AL
SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
}
-void ALflanger_getParamiv(ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
+void ALflanger_getParamiv(const ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
{
ALflanger_getParami(effect, context, param, vals);
}
-void ALflanger_getParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val)
+void ALflanger_getParamf(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val)
{
const ALeffectProps *props = &effect->Props;
switch(param)
@@ -385,7 +385,7 @@ void ALflanger_getParamf(ALeffect *effect, ALCcontext *context, ALenum param, AL
SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
}
-void ALflanger_getParamfv(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
+void ALflanger_getParamfv(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
{
ALflanger_getParamf(effect, context, param, vals);
}
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);
}
diff --git a/Alc/effects/null.c b/Alc/effects/null.c
index 62e9f6eb..ff378960 100644
--- a/Alc/effects/null.c
+++ b/Alc/effects/null.c
@@ -126,7 +126,7 @@ void ALnull_setParamfv(ALeffect* UNUSED(effect), ALCcontext *context, ALenum par
}
}
-void ALnull_getParami(ALeffect* UNUSED(effect), ALCcontext *context, ALenum param, ALint* UNUSED(val))
+void ALnull_getParami(const ALeffect* UNUSED(effect), ALCcontext *context, ALenum param, ALint* UNUSED(val))
{
switch(param)
{
@@ -134,7 +134,7 @@ void ALnull_getParami(ALeffect* UNUSED(effect), ALCcontext *context, ALenum para
SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
}
-void ALnull_getParamiv(ALeffect* UNUSED(effect), ALCcontext *context, ALenum param, ALint* UNUSED(vals))
+void ALnull_getParamiv(const ALeffect* UNUSED(effect), ALCcontext *context, ALenum param, ALint* UNUSED(vals))
{
switch(param)
{
@@ -142,7 +142,7 @@ void ALnull_getParamiv(ALeffect* UNUSED(effect), ALCcontext *context, ALenum par
SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
}
-void ALnull_getParamf(ALeffect* UNUSED(effect), ALCcontext *context, ALenum param, ALfloat* UNUSED(val))
+void ALnull_getParamf(const ALeffect* UNUSED(effect), ALCcontext *context, ALenum param, ALfloat* UNUSED(val))
{
switch(param)
{
@@ -150,7 +150,7 @@ void ALnull_getParamf(ALeffect* UNUSED(effect), ALCcontext *context, ALenum para
SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
}
-void ALnull_getParamfv(ALeffect* UNUSED(effect), ALCcontext *context, ALenum param, ALfloat* UNUSED(vals))
+void ALnull_getParamfv(const ALeffect* UNUSED(effect), ALCcontext *context, ALenum param, ALfloat* UNUSED(vals))
{
switch(param)
{
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c
index 9e16984b..4a99adb7 100644
--- a/Alc/effects/reverb.c
+++ b/Alc/effects/reverb.c
@@ -1470,7 +1470,7 @@ void ALeaxreverb_setParamfv(ALeffect *effect, ALCcontext *context, ALenum param,
}
}
-void ALeaxreverb_getParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint *val)
+void ALeaxreverb_getParami(const ALeffect *effect, ALCcontext *context, ALenum param, ALint *val)
{
const ALeffectProps *props = &effect->Props;
switch(param)
@@ -1483,11 +1483,11 @@ void ALeaxreverb_getParami(ALeffect *effect, ALCcontext *context, ALenum param,
SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
}
-void ALeaxreverb_getParamiv(ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
+void ALeaxreverb_getParamiv(const ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
{
ALeaxreverb_getParami(effect, context, param, vals);
}
-void ALeaxreverb_getParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val)
+void ALeaxreverb_getParamf(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val)
{
const ALeffectProps *props = &effect->Props;
switch(param)
@@ -1576,7 +1576,7 @@ void ALeaxreverb_getParamf(ALeffect *effect, ALCcontext *context, ALenum param,
SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
}
-void ALeaxreverb_getParamfv(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
+void ALeaxreverb_getParamfv(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
{
const ALeffectProps *props = &effect->Props;
switch(param)
@@ -1709,7 +1709,7 @@ void ALreverb_setParamfv(ALeffect *effect, ALCcontext *context, ALenum param, co
ALreverb_setParamf(effect, context, param, vals[0]);
}
-void ALreverb_getParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint *val)
+void ALreverb_getParami(const ALeffect *effect, ALCcontext *context, ALenum param, ALint *val)
{
const ALeffectProps *props = &effect->Props;
switch(param)
@@ -1722,11 +1722,11 @@ void ALreverb_getParami(ALeffect *effect, ALCcontext *context, ALenum param, ALi
SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
}
-void ALreverb_getParamiv(ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
+void ALreverb_getParamiv(const ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals)
{
ALreverb_getParami(effect, context, param, vals);
}
-void ALreverb_getParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val)
+void ALreverb_getParamf(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val)
{
const ALeffectProps *props = &effect->Props;
switch(param)
@@ -1783,7 +1783,7 @@ void ALreverb_getParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALf
SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM);
}
}
-void ALreverb_getParamfv(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
+void ALreverb_getParamfv(const ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals)
{
ALreverb_getParamf(effect, context, param, vals);
}
diff --git a/OpenAL32/Include/alEffect.h b/OpenAL32/Include/alEffect.h
index 89fa5381..772324cc 100644
--- a/OpenAL32/Include/alEffect.h
+++ b/OpenAL32/Include/alEffect.h
@@ -35,10 +35,10 @@ struct ALeffectVtable {
void (*const setParamf)(struct ALeffect *effect, ALCcontext *context, ALenum param, ALfloat val);
void (*const setParamfv)(struct ALeffect *effect, ALCcontext *context, ALenum param, const ALfloat *vals);
- void (*const getParami)(struct ALeffect *effect, ALCcontext *context, ALenum param, ALint *val);
- void (*const getParamiv)(struct ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals);
- void (*const getParamf)(struct ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val);
- void (*const getParamfv)(struct ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals);
+ void (*const getParami)(const struct ALeffect *effect, ALCcontext *context, ALenum param, ALint *val);
+ void (*const getParamiv)(const struct ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals);
+ void (*const getParamf)(const struct ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val);
+ void (*const getParamfv)(const struct ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals);
};
#define DEFINE_ALEFFECT_VTABLE(T) \