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 | |
parent | ac554de67d5eb353283c3359bbac15fb4ddad7d9 (diff) |
Move another function to a ALCcontext method
Diffstat (limited to 'alc/effects')
-rw-r--r-- | alc/effects/autowah.cpp | 13 | ||||
-rw-r--r-- | alc/effects/chorus.cpp | 17 | ||||
-rw-r--r-- | alc/effects/compressor.cpp | 17 | ||||
-rw-r--r-- | alc/effects/dedicated.cpp | 13 | ||||
-rw-r--r-- | alc/effects/distortion.cpp | 15 | ||||
-rw-r--r-- | alc/effects/echo.cpp | 13 | ||||
-rw-r--r-- | alc/effects/equalizer.cpp | 13 | ||||
-rw-r--r-- | alc/effects/fshifter.cpp | 13 | ||||
-rw-r--r-- | alc/effects/modulator.cpp | 9 | ||||
-rw-r--r-- | alc/effects/null.cpp | 10 | ||||
-rw-r--r-- | alc/effects/pshifter.cpp | 15 | ||||
-rw-r--r-- | alc/effects/reverb.cpp | 23 | ||||
-rw-r--r-- | alc/effects/vmorpher.cpp | 17 |
13 files changed, 91 insertions, 97 deletions
diff --git a/alc/effects/autowah.cpp b/alc/effects/autowah.cpp index d92e114a..1aac749e 100644 --- a/alc/effects/autowah.cpp +++ b/alc/effects/autowah.cpp @@ -26,7 +26,6 @@ #include <algorithm> #include "al/auxeffectslot.h" -#include "al/error.h" #include "alcmain.h" #include "alcontext.h" #include "alu.h" @@ -226,16 +225,16 @@ void ALautowah_setParamf(EffectProps *props, ALCcontext *context, ALenum param, break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid autowah float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid autowah float property 0x%04x", param); } } void ALautowah_setParamfv(EffectProps *props, ALCcontext *context, ALenum param, const ALfloat *vals) { ALautowah_setParamf(props, context, param, vals[0]); } void ALautowah_setParami(EffectProps*, ALCcontext *context, ALenum param, ALint) -{ alSetError(context, AL_INVALID_ENUM, "Invalid autowah integer property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid autowah integer property 0x%04x", param); } void ALautowah_setParamiv(EffectProps*, ALCcontext *context, ALenum param, const ALint*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid autowah integer vector property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid autowah integer vector property 0x%04x", param); } void ALautowah_getParamf(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *val) { @@ -258,7 +257,7 @@ void ALautowah_getParamf(const EffectProps *props, ALCcontext *context, ALenum p break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid autowah float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid autowah float property 0x%04x", param); } } @@ -266,9 +265,9 @@ void ALautowah_getParamfv(const EffectProps *props, ALCcontext *context, ALenum { ALautowah_getParamf(props, context, param, vals); } void ALautowah_getParami(const EffectProps*, ALCcontext *context, ALenum param, ALint*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid autowah integer property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid autowah integer property 0x%04x", param); } void ALautowah_getParamiv(const EffectProps*, ALCcontext *context, ALenum param, ALint*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid autowah integer vector property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid autowah integer vector property 0x%04x", param); } DEFINE_ALEFFECT_VTABLE(ALautowah); diff --git a/alc/effects/chorus.cpp b/alc/effects/chorus.cpp index 7a473723..31f10c81 100644 --- a/alc/effects/chorus.cpp +++ b/alc/effects/chorus.cpp @@ -31,7 +31,6 @@ #include "AL/efx.h" #include "al/auxeffectslot.h" -#include "al/error.h" #include "alcmain.h" #include "alcontext.h" #include "almalloc.h" @@ -290,7 +289,7 @@ void Chorus_setParami(EffectProps *props, ALCcontext *context, ALenum param, ALi break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid chorus integer property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid chorus integer property 0x%04x", param); } } void Chorus_setParamiv(EffectProps *props, ALCcontext *context, ALenum param, const ALint *vals) @@ -324,7 +323,7 @@ void Chorus_setParamf(EffectProps *props, ALCcontext *context, ALenum param, ALf break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid chorus float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid chorus float property 0x%04x", param); } } void Chorus_setParamfv(EffectProps *props, ALCcontext *context, ALenum param, const ALfloat *vals) @@ -343,7 +342,7 @@ void Chorus_getParami(const EffectProps *props, ALCcontext *context, ALenum para break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid chorus integer property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid chorus integer property 0x%04x", param); } } void Chorus_getParamiv(const EffectProps *props, ALCcontext *context, ALenum param, ALint *vals) @@ -369,7 +368,7 @@ void Chorus_getParamf(const EffectProps *props, ALCcontext *context, ALenum para break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid chorus float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid chorus float property 0x%04x", param); } } void Chorus_getParamfv(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *vals) @@ -414,7 +413,7 @@ void Flanger_setParami(EffectProps *props, ALCcontext *context, ALenum param, AL break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid flanger integer property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid flanger integer property 0x%04x", param); } } void Flanger_setParamiv(EffectProps *props, ALCcontext *context, ALenum param, const ALint *vals) @@ -448,7 +447,7 @@ void Flanger_setParamf(EffectProps *props, ALCcontext *context, ALenum param, AL break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid flanger float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid flanger float property 0x%04x", param); } } void Flanger_setParamfv(EffectProps *props, ALCcontext *context, ALenum param, const ALfloat *vals) @@ -467,7 +466,7 @@ void Flanger_getParami(const EffectProps *props, ALCcontext *context, ALenum par break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid flanger integer property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid flanger integer property 0x%04x", param); } } void Flanger_getParamiv(const EffectProps *props, ALCcontext *context, ALenum param, ALint *vals) @@ -493,7 +492,7 @@ void Flanger_getParamf(const EffectProps *props, ALCcontext *context, ALenum par break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid flanger float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid flanger float property 0x%04x", param); } } void Flanger_getParamfv(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *vals) diff --git a/alc/effects/compressor.cpp b/alc/effects/compressor.cpp index 86e2e02b..63867762 100644 --- a/alc/effects/compressor.cpp +++ b/alc/effects/compressor.cpp @@ -23,7 +23,6 @@ #include <cstdlib> #include "al/auxeffectslot.h" -#include "al/error.h" #include "alcmain.h" #include "alcontext.h" #include "alu.h" @@ -166,16 +165,16 @@ void Compressor_setParami(EffectProps *props, ALCcontext *context, ALenum param, break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid compressor integer property 0x%04x", - param); + context->setError(AL_INVALID_ENUM, "Invalid compressor integer property 0x%04x", + param); } } void Compressor_setParamiv(EffectProps *props, ALCcontext *context, ALenum param, const ALint *vals) { Compressor_setParami(props, context, param, vals[0]); } void Compressor_setParamf(EffectProps*, ALCcontext *context, ALenum param, ALfloat) -{ alSetError(context, AL_INVALID_ENUM, "Invalid compressor float property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid compressor float property 0x%04x", param); } void Compressor_setParamfv(EffectProps*, ALCcontext *context, ALenum param, const ALfloat*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid compressor float-vector property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid compressor float-vector property 0x%04x", param); } void Compressor_getParami(const EffectProps *props, ALCcontext *context, ALenum param, ALint *val) { @@ -186,16 +185,16 @@ void Compressor_getParami(const EffectProps *props, ALCcontext *context, ALenum break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid compressor integer property 0x%04x", - param); + context->setError(AL_INVALID_ENUM, "Invalid compressor integer property 0x%04x", + param); } } void Compressor_getParamiv(const EffectProps *props, ALCcontext *context, ALenum param, ALint *vals) { Compressor_getParami(props, context, param, vals); } void Compressor_getParamf(const EffectProps*, ALCcontext *context, ALenum param, ALfloat*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid compressor float property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid compressor float property 0x%04x", param); } void Compressor_getParamfv(const EffectProps*, ALCcontext *context, ALenum param, ALfloat*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid compressor float-vector property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid compressor float-vector property 0x%04x", param); } DEFINE_ALEFFECT_VTABLE(Compressor); diff --git a/alc/effects/dedicated.cpp b/alc/effects/dedicated.cpp index c05df772..2e49658f 100644 --- a/alc/effects/dedicated.cpp +++ b/alc/effects/dedicated.cpp @@ -25,7 +25,6 @@ #include <algorithm> #include "al/auxeffectslot.h" -#include "al/error.h" #include "alcmain.h" #include "alcontext.h" #include "alu.h" @@ -95,9 +94,9 @@ void DedicatedState::process(const ALsizei samplesToDo, const FloatBufferLine *R void Dedicated_setParami(EffectProps*, ALCcontext *context, ALenum param, ALint) -{ alSetError(context, AL_INVALID_ENUM, "Invalid dedicated integer property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid dedicated integer property 0x%04x", param); } void Dedicated_setParamiv(EffectProps*, ALCcontext *context, ALenum param, const ALint*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid dedicated integer-vector property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid dedicated integer-vector property 0x%04x", param); } void Dedicated_setParamf(EffectProps *props, ALCcontext *context, ALenum param, ALfloat val) { switch(param) @@ -109,16 +108,16 @@ void Dedicated_setParamf(EffectProps *props, ALCcontext *context, ALenum param, break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid dedicated float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid dedicated float property 0x%04x", param); } } void Dedicated_setParamfv(EffectProps *props, ALCcontext *context, ALenum param, const ALfloat *vals) { Dedicated_setParamf(props, context, param, vals[0]); } void Dedicated_getParami(const EffectProps*, ALCcontext *context, ALenum param, ALint*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid dedicated integer property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid dedicated integer property 0x%04x", param); } void Dedicated_getParamiv(const EffectProps*, ALCcontext *context, ALenum param, ALint*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid dedicated integer-vector property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid dedicated integer-vector property 0x%04x", param); } void Dedicated_getParamf(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *val) { switch(param) @@ -128,7 +127,7 @@ void Dedicated_getParamf(const EffectProps *props, ALCcontext *context, ALenum p break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid dedicated float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid dedicated float property 0x%04x", param); } } void Dedicated_getParamfv(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *vals) 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) diff --git a/alc/effects/echo.cpp b/alc/effects/echo.cpp index 9a43c037..d14db80c 100644 --- a/alc/effects/echo.cpp +++ b/alc/effects/echo.cpp @@ -26,7 +26,6 @@ #include <algorithm> #include "al/auxeffectslot.h" -#include "al/error.h" #include "al/filter.h" #include "alcmain.h" #include "alcontext.h" @@ -163,9 +162,9 @@ void EchoState::process(const ALsizei samplesToDo, const FloatBufferLine *RESTRI void Echo_setParami(EffectProps*, ALCcontext *context, ALenum param, ALint) -{ alSetError(context, AL_INVALID_ENUM, "Invalid echo integer property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid echo integer property 0x%04x", param); } void Echo_setParamiv(EffectProps*, ALCcontext *context, ALenum param, const ALint*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid echo integer-vector property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid echo integer-vector property 0x%04x", param); } void Echo_setParamf(EffectProps *props, ALCcontext *context, ALenum param, ALfloat val) { switch(param) @@ -201,16 +200,16 @@ void Echo_setParamf(EffectProps *props, ALCcontext *context, ALenum param, ALflo break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid echo float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid echo float property 0x%04x", param); } } void Echo_setParamfv(EffectProps *props, ALCcontext *context, ALenum param, const ALfloat *vals) { Echo_setParamf(props, context, param, vals[0]); } void Echo_getParami(const EffectProps*, ALCcontext *context, ALenum param, ALint*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid echo integer property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid echo integer property 0x%04x", param); } void Echo_getParamiv(const EffectProps*, ALCcontext *context, ALenum param, ALint*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid echo integer-vector property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid echo integer-vector property 0x%04x", param); } void Echo_getParamf(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *val) { switch(param) @@ -236,7 +235,7 @@ void Echo_getParamf(const EffectProps *props, ALCcontext *context, ALenum param, break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid echo float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid echo float property 0x%04x", param); } } void Echo_getParamfv(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *vals) diff --git a/alc/effects/equalizer.cpp b/alc/effects/equalizer.cpp index 25ccf264..4b900bcf 100644 --- a/alc/effects/equalizer.cpp +++ b/alc/effects/equalizer.cpp @@ -27,7 +27,6 @@ #include <functional> #include "al/auxeffectslot.h" -#include "al/error.h" #include "alcmain.h" #include "alcontext.h" #include "alu.h" @@ -174,9 +173,9 @@ void EqualizerState::process(const ALsizei samplesToDo, const FloatBufferLine *R void Equalizer_setParami(EffectProps*, ALCcontext *context, ALenum param, ALint) -{ alSetError(context, AL_INVALID_ENUM, "Invalid equalizer integer property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid equalizer integer property 0x%04x", param); } void Equalizer_setParamiv(EffectProps*, ALCcontext *context, ALenum param, const ALint*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid equalizer integer-vector property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid equalizer integer-vector property 0x%04x", param); } void Equalizer_setParamf(EffectProps *props, ALCcontext *context, ALenum param, ALfloat val) { switch(param) @@ -242,16 +241,16 @@ void Equalizer_setParamf(EffectProps *props, ALCcontext *context, ALenum param, break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid equalizer float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid equalizer float property 0x%04x", param); } } void Equalizer_setParamfv(EffectProps *props, ALCcontext *context, ALenum param, const ALfloat *vals) { Equalizer_setParamf(props, context, param, vals[0]); } void Equalizer_getParami(const EffectProps*, ALCcontext *context, ALenum param, ALint*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid equalizer integer property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid equalizer integer property 0x%04x", param); } void Equalizer_getParamiv(const EffectProps*, ALCcontext *context, ALenum param, ALint*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid equalizer integer-vector property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid equalizer integer-vector property 0x%04x", param); } void Equalizer_getParamf(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *val) { switch(param) @@ -297,7 +296,7 @@ void Equalizer_getParamf(const EffectProps *props, ALCcontext *context, ALenum p break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid equalizer float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid equalizer float property 0x%04x", param); } } void Equalizer_getParamfv(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *vals) diff --git a/alc/effects/fshifter.cpp b/alc/effects/fshifter.cpp index 9b204d2e..bca29bba 100644 --- a/alc/effects/fshifter.cpp +++ b/alc/effects/fshifter.cpp @@ -27,7 +27,6 @@ #include <algorithm> #include "al/auxeffectslot.h" -#include "al/error.h" #include "alcmain.h" #include "alcontext.h" #include "alu.h" @@ -213,7 +212,8 @@ void Fshifter_setParamf(EffectProps *props, ALCcontext *context, ALenum param, A break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid frequency shifter float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid frequency shifter float property 0x%04x", + param); } } void Fshifter_setParamfv(EffectProps *props, ALCcontext *context, ALenum param, const ALfloat *vals) @@ -236,7 +236,8 @@ void Fshifter_setParami(EffectProps *props, ALCcontext *context, ALenum param, A break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid frequency shifter integer property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid frequency shifter integer property 0x%04x", + param); } } void Fshifter_setParamiv(EffectProps *props, ALCcontext *context, ALenum param, const ALint *vals) @@ -253,7 +254,8 @@ void Fshifter_getParami(const EffectProps *props, ALCcontext *context, ALenum pa *val = props->Fshifter.RightDirection; break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid frequency shifter integer property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid frequency shifter integer property 0x%04x", + param); } } void Fshifter_getParamiv(const EffectProps *props, ALCcontext *context, ALenum param, ALint *vals) @@ -268,7 +270,8 @@ void Fshifter_getParamf(const EffectProps *props, ALCcontext *context, ALenum pa break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid frequency shifter float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid frequency shifter float property 0x%04x", + param); } } void Fshifter_getParamfv(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *vals) diff --git a/alc/effects/modulator.cpp b/alc/effects/modulator.cpp index bd63c56c..d7118285 100644 --- a/alc/effects/modulator.cpp +++ b/alc/effects/modulator.cpp @@ -27,7 +27,6 @@ #include <algorithm> #include "al/auxeffectslot.h" -#include "al/error.h" #include "alcmain.h" #include "alcontext.h" #include "alu.h" @@ -187,7 +186,7 @@ void Modulator_setParamf(EffectProps *props, ALCcontext *context, ALenum param, break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid modulator float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid modulator float property 0x%04x", param); } } void Modulator_setParamfv(EffectProps *props, ALCcontext *context, ALenum param, const ALfloat *vals) @@ -208,7 +207,7 @@ void Modulator_setParami(EffectProps *props, ALCcontext *context, ALenum param, break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid modulator integer property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid modulator integer property 0x%04x", param); } } void Modulator_setParamiv(EffectProps *props, ALCcontext *context, ALenum param, const ALint *vals) @@ -229,7 +228,7 @@ void Modulator_getParami(const EffectProps *props, ALCcontext *context, ALenum p break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid modulator integer property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid modulator integer property 0x%04x", param); } } void Modulator_getParamiv(const EffectProps *props, ALCcontext *context, ALenum param, ALint *vals) @@ -246,7 +245,7 @@ void Modulator_getParamf(const EffectProps *props, ALCcontext *context, ALenum p break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid modulator float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid modulator float property 0x%04x", param); } } void Modulator_getParamfv(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *vals) diff --git a/alc/effects/null.cpp b/alc/effects/null.cpp index c4eebb3d..245b9b04 100644 --- a/alc/effects/null.cpp +++ b/alc/effects/null.cpp @@ -5,8 +5,8 @@ #include "AL/alc.h" #include "al/auxeffectslot.h" -#include "al/error.h" #include "alcmain.h" +#include "alcontext.h" #include "almalloc.h" #include "alspan.h" #include "effects/base.h" @@ -69,7 +69,7 @@ void NullEffect_setParami(EffectProps* /*props*/, ALCcontext *context, ALenum pa switch(param) { default: - alSetError(context, AL_INVALID_ENUM, "Invalid null effect integer property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid null effect integer property 0x%04x", param); } } void NullEffect_setParamiv(EffectProps *props, ALCcontext *context, ALenum param, const ALint *vals) @@ -85,7 +85,7 @@ void NullEffect_setParamf(EffectProps* /*props*/, ALCcontext *context, ALenum pa switch(param) { default: - alSetError(context, AL_INVALID_ENUM, "Invalid null effect float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid null effect float property 0x%04x", param); } } void NullEffect_setParamfv(EffectProps *props, ALCcontext *context, ALenum param, const ALfloat *vals) @@ -102,7 +102,7 @@ void NullEffect_getParami(const EffectProps* /*props*/, ALCcontext *context, ALe switch(param) { default: - alSetError(context, AL_INVALID_ENUM, "Invalid null effect integer property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid null effect integer property 0x%04x", param); } } void NullEffect_getParamiv(const EffectProps *props, ALCcontext *context, ALenum param, ALint *vals) @@ -118,7 +118,7 @@ void NullEffect_getParamf(const EffectProps* /*props*/, ALCcontext *context, ALe switch(param) { default: - alSetError(context, AL_INVALID_ENUM, "Invalid null effect float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid null effect float property 0x%04x", param); } } void NullEffect_getParamfv(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *vals) diff --git a/alc/effects/pshifter.cpp b/alc/effects/pshifter.cpp index eac5894b..a08052b9 100644 --- a/alc/effects/pshifter.cpp +++ b/alc/effects/pshifter.cpp @@ -31,7 +31,6 @@ #include <algorithm> #include "al/auxeffectslot.h" -#include "al/error.h" #include "alcmain.h" #include "alcomplex.h" #include "alcontext.h" @@ -325,9 +324,9 @@ void PshifterState::process(const ALsizei samplesToDo, const FloatBufferLine *RE void Pshifter_setParamf(EffectProps*, ALCcontext *context, ALenum param, ALfloat) -{ alSetError(context, AL_INVALID_ENUM, "Invalid pitch shifter float property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid pitch shifter float property 0x%04x", param); } void Pshifter_setParamfv(EffectProps*, ALCcontext *context, ALenum param, const ALfloat*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid pitch shifter float-vector property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid pitch shifter float-vector property 0x%04x", param); } void Pshifter_setParami(EffectProps *props, ALCcontext *context, ALenum param, ALint val) { @@ -346,7 +345,8 @@ void Pshifter_setParami(EffectProps *props, ALCcontext *context, ALenum param, A break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid pitch shifter integer property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid pitch shifter integer property 0x%04x", + param); } } void Pshifter_setParamiv(EffectProps *props, ALCcontext *context, ALenum param, const ALint *vals) @@ -364,16 +364,17 @@ void Pshifter_getParami(const EffectProps *props, ALCcontext *context, ALenum pa break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid pitch shifter integer property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid pitch shifter integer property 0x%04x", + param); } } void Pshifter_getParamiv(const EffectProps *props, ALCcontext *context, ALenum param, ALint *vals) { Pshifter_getParami(props, context, param, vals); } void Pshifter_getParamf(const EffectProps*, ALCcontext *context, ALenum param, ALfloat*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid pitch shifter float property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid pitch shifter float property 0x%04x", param); } void Pshifter_getParamfv(const EffectProps*, ALCcontext *context, ALenum param, ALfloat*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid pitch shifter float vector-property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid pitch shifter float vector-property 0x%04x", param); } DEFINE_ALEFFECT_VTABLE(Pshifter); diff --git a/alc/effects/reverb.cpp b/alc/effects/reverb.cpp index bc4995ff..6e6844e0 100644 --- a/alc/effects/reverb.cpp +++ b/alc/effects/reverb.cpp @@ -30,7 +30,6 @@ #include <functional> #include "al/auxeffectslot.h" -#include "al/error.h" #include "al/listener.h" #include "alcmain.h" #include "alcontext.h" @@ -1545,8 +1544,8 @@ void EAXReverb_setParami(EffectProps *props, ALCcontext *context, ALenum param, break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid EAX reverb integer property 0x%04x", - param); + context->setError(AL_INVALID_ENUM, "Invalid EAX reverb integer property 0x%04x", + param); } } void EAXReverb_setParamiv(EffectProps *props, ALCcontext *context, ALenum param, const ALint *vals) @@ -1676,8 +1675,7 @@ void EAXReverb_setParamf(EffectProps *props, ALCcontext *context, ALenum param, break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid EAX reverb float property 0x%04x", - param); + context->setError(AL_INVALID_ENUM, "Invalid EAX reverb float property 0x%04x", param); } } void EAXReverb_setParamfv(EffectProps *props, ALCcontext *context, ALenum param, const ALfloat *vals) @@ -1714,8 +1712,8 @@ void EAXReverb_getParami(const EffectProps *props, ALCcontext *context, ALenum p break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid EAX reverb integer property 0x%04x", - param); + context->setError(AL_INVALID_ENUM, "Invalid EAX reverb integer property 0x%04x", + param); } } void EAXReverb_getParamiv(const EffectProps *props, ALCcontext *context, ALenum param, ALint *vals) @@ -1805,8 +1803,7 @@ void EAXReverb_getParamf(const EffectProps *props, ALCcontext *context, ALenum p break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid EAX reverb float property 0x%04x", - param); + context->setError(AL_INVALID_ENUM, "Invalid EAX reverb float property 0x%04x", param); } } void EAXReverb_getParamfv(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *vals) @@ -1884,7 +1881,7 @@ void StdReverb_setParami(EffectProps *props, ALCcontext *context, ALenum param, break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid reverb integer property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid reverb integer property 0x%04x", param); } } void StdReverb_setParamiv(EffectProps *props, ALCcontext *context, ALenum param, const ALint *vals) @@ -1966,7 +1963,7 @@ void StdReverb_setParamf(EffectProps *props, ALCcontext *context, ALenum param, break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid reverb float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid reverb float property 0x%04x", param); } } void StdReverb_setParamfv(EffectProps *props, ALCcontext *context, ALenum param, const ALfloat *vals) @@ -1981,7 +1978,7 @@ void StdReverb_getParami(const EffectProps *props, ALCcontext *context, ALenum p break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid reverb integer property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid reverb integer property 0x%04x", param); } } void StdReverb_getParamiv(const EffectProps *props, ALCcontext *context, ALenum param, ALint *vals) @@ -2039,7 +2036,7 @@ void StdReverb_getParamf(const EffectProps *props, ALCcontext *context, ALenum p break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid reverb float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid reverb float property 0x%04x", param); } } void StdReverb_getParamfv(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *vals) diff --git a/alc/effects/vmorpher.cpp b/alc/effects/vmorpher.cpp index ae8c98e1..95016105 100644 --- a/alc/effects/vmorpher.cpp +++ b/alc/effects/vmorpher.cpp @@ -26,7 +26,6 @@ #include <functional> #include "al/auxeffectslot.h" -#include "al/error.h" #include "alcmain.h" #include "alcontext.h" #include "alu.h" @@ -333,11 +332,12 @@ void Vmorpher_setParami(EffectProps* props, ALCcontext *context, ALenum param, A break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid vocal morpher integer property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid vocal morpher integer property 0x%04x", + param); } } void Vmorpher_setParamiv(EffectProps*, ALCcontext *context, ALenum param, const ALint*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid vocal morpher integer-vector property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid vocal morpher integer-vector property 0x%04x", param); } void Vmorpher_setParamf(EffectProps *props, ALCcontext *context, ALenum param, ALfloat val) { switch(param) @@ -349,7 +349,8 @@ void Vmorpher_setParamf(EffectProps *props, ALCcontext *context, ALenum param, A break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid vocal morpher float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid vocal morpher float property 0x%04x", + param); } } void Vmorpher_setParamfv(EffectProps *props, ALCcontext *context, ALenum param, const ALfloat *vals) @@ -380,11 +381,12 @@ void Vmorpher_getParami(const EffectProps* props, ALCcontext *context, ALenum pa break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid vocal morpher integer property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid vocal morpher integer property 0x%04x", + param); } } void Vmorpher_getParamiv(const EffectProps*, ALCcontext *context, ALenum param, ALint*) -{ alSetError(context, AL_INVALID_ENUM, "Invalid vocal morpher integer-vector property 0x%04x", param); } +{ context->setError(AL_INVALID_ENUM, "Invalid vocal morpher integer-vector property 0x%04x", param); } void Vmorpher_getParamf(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *val) { switch(param) @@ -394,7 +396,8 @@ void Vmorpher_getParamf(const EffectProps *props, ALCcontext *context, ALenum pa break; default: - alSetError(context, AL_INVALID_ENUM, "Invalid vocal morpher float property 0x%04x", param); + context->setError(AL_INVALID_ENUM, "Invalid vocal morpher float property 0x%04x", + param); } } void Vmorpher_getParamfv(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *vals) |