diff options
author | Chris Robinson <[email protected]> | 2019-07-30 21:32:05 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-07-30 21:32:05 -0700 |
commit | f286c3fa3857579a6c7cf84f32ff953e498577bf (patch) | |
tree | 53fa7c741295ecc997aa342178efbfbc401fc7a3 /alc/effects/distortion.cpp | |
parent | ac554de67d5eb353283c3359bbac15fb4ddad7d9 (diff) |
Move another function to a ALCcontext method
Diffstat (limited to 'alc/effects/distortion.cpp')
-rw-r--r-- | alc/effects/distortion.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/alc/effects/distortion.cpp b/alc/effects/distortion.cpp index 79278f0d..3fd08229 100644 --- a/alc/effects/distortion.cpp +++ b/alc/effects/distortion.cpp @@ -26,7 +26,6 @@ #include <cmath> #include "al/auxeffectslot.h" -#include "al/error.h" #include "alcmain.h" #include "alcontext.h" #include "alu.h" @@ -159,9 +158,9 @@ void DistortionState::process(const ALsizei samplesToDo, const FloatBufferLine * void Distortion_setParami(EffectProps*, ALCcontext *context, ALenum param, ALint) -{ alSetError(context, AL_INVALID_ENUM, "Invalid distortion integer property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid distortion integer property 0x%04x", param); } void Distortion_setParamiv(EffectProps*, ALCcontext *context, ALenum param, const ALint*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid distortion integer-vector property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid distortion integer-vector property 0x%04x", param); } void Distortion_setParamf(EffectProps *props, ALCcontext *context, ALenum param, ALfloat val) { switch(param) @@ -197,17 +196,16 @@ void Distortion_setParamf(EffectProps *props, ALCcontext *context, ALenum param, break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid distortion float property 0x%04x", - param); + context->setError(AL_INVALID_ENUM, "Invalid distortion float property 0x%04x", param); } } void Distortion_setParamfv(EffectProps *props, ALCcontext *context, ALenum param, const ALfloat *vals) { Distortion_setParamf(props, context, param, vals[0]); } void Distortion_getParami(const EffectProps*, ALCcontext *context, ALenum param, ALint*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid distortion integer property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid distortion integer property 0x%04x", param); } void Distortion_getParamiv(const EffectProps*, ALCcontext *context, ALenum param, ALint*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid distortion integer-vector property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid distortion integer-vector property 0x%04x", param); } void Distortion_getParamf(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *val) { switch(param) @@ -233,8 +231,7 @@ void Distortion_getParamf(const EffectProps *props, ALCcontext *context, ALenum break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid distortion float property 0x%04x", - param); + context->setError(AL_INVALID_ENUM, "Invalid distortion float property 0x%04x", param); } } void Distortion_getParamfv(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *vals) |