diff options
author | Chris Robinson <[email protected]> | 2013-05-26 08:54:34 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-05-26 08:54:34 -0700 |
commit | 82caba6bbe251d50731785e529cd55a6ecf91664 (patch) | |
tree | d42e32da57abd999abf34472d969f5ddef9bc6cc /Alc/effects/chorus.c | |
parent | 8808159d55a65cec92010622f63844e76644722c (diff) |
Use the helper macros in more places
Diffstat (limited to 'Alc/effects/chorus.c')
-rw-r--r-- | Alc/effects/chorus.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Alc/effects/chorus.c b/Alc/effects/chorus.c index 783e5642..6a1a2d9c 100644 --- a/Alc/effects/chorus.c +++ b/Alc/effects/chorus.c @@ -301,8 +301,7 @@ void ALchorus_SetParami(ALeffect *effect, ALCcontext *context, ALenum param, ALi break; default: - alSetError(context, AL_INVALID_ENUM); - break; + SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); } } void ALchorus_SetParamiv(ALeffect *effect, ALCcontext *context, ALenum param, const ALint *vals) @@ -391,7 +390,6 @@ void ALchorus_GetParamf(ALeffect *effect, ALCcontext *context, ALenum param, ALf default: SET_ERROR_AND_RETURN(context, AL_INVALID_ENUM); - break; } } void ALchorus_GetParamfv(ALeffect *effect, ALCcontext *context, ALenum param, ALfloat *vals) |