diff options
author | Chris Robinson <[email protected]> | 2013-05-24 23:26:59 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-05-24 23:26:59 -0700 |
commit | e157238ce7467b6d3dbabb66f1308bb0bd87473e (patch) | |
tree | dc12370aa69ac4c3edbe393809d3c809caf0f6f9 /Alc/effects/chorus.c | |
parent | 49446c7b3227a9b95763b0d7ee0907b1017d595b (diff) |
Use vtables for setting effect properties
Diffstat (limited to 'Alc/effects/chorus.c')
-rw-r--r-- | Alc/effects/chorus.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/Alc/effects/chorus.c b/Alc/effects/chorus.c index e5a20b5d..c74bf0b5 100644 --- a/Alc/effects/chorus.c +++ b/Alc/effects/chorus.c @@ -290,7 +290,7 @@ ALeffectStateFactory *ALchorusStateFactory_getFactory(void) } -void chorus_SetParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint val) +void ALchorus_SetParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint val) { switch(param) { @@ -313,11 +313,11 @@ void chorus_SetParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint break; } } -void chorus_SetParamiv(ALeffect *effect, ALCcontext *context, ALenum param, const ALint *vals) +void ALchorus_SetParamiv(ALeffect *effect, ALCcontext *context, ALenum param, const ALint *vals) { - chorus_SetParami(effect, context, param, vals[0]); + ALchorus_SetParami(effect, context, param, vals[0]); } -void chorus_SetParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat val) +void ALchorus_SetParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat val) { switch(param) { @@ -354,12 +354,12 @@ void chorus_SetParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALflo break; } } -void chorus_SetParamfv(ALeffect *effect, ALCcontext *context, ALenum param, const ALfloat *vals) +void ALchorus_SetParamfv(ALeffect *effect, ALCcontext *context, ALenum param, const ALfloat *vals) { - chorus_SetParamf(effect, context, param, vals[0]); + ALchorus_SetParamf(effect, context, param, vals[0]); } -void chorus_GetParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint *val) +void ALchorus_GetParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint *val) { switch(param) { @@ -376,11 +376,11 @@ void chorus_GetParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint break; } } -void chorus_GetParamiv(ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals) +void ALchorus_GetParamiv(ALeffect *effect, ALCcontext *context, ALenum param, ALint *vals) { - chorus_GetParami(effect, context, param, vals); + ALchorus_GetParami(effect, context, param, vals); } -void chorus_GetParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val) +void ALchorus_GetParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *val) { switch(param) { @@ -405,7 +405,9 @@ void chorus_GetParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALflo break; } } -void chorus_GetParamfv(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals) +void ALchorus_GetParamfv(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals) { - chorus_GetParamf(effect, context, param, vals); + ALchorus_GetParamf(effect, context, param, vals); } + +DEFINE_ALEFFECT_VTABLE(ALchorus); |