aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects/autowah.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-15 12:58:58 -0700
committerChris Robinson <[email protected]>2019-09-15 12:58:58 -0700
commita999df8ce5f3a2c5bdbe99cebea47a56d2bf1f66 (patch)
tree211f5d2afd986487971ac7b9a35db44fca0c2669 /alc/effects/autowah.cpp
parent47f0d301dc27e66263e754913782250f3899527e (diff)
Rename ALautowah* for consistency
Diffstat (limited to 'alc/effects/autowah.cpp')
-rw-r--r--alc/effects/autowah.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/alc/effects/autowah.cpp b/alc/effects/autowah.cpp
index 5e396d0c..a79c21d9 100644
--- a/alc/effects/autowah.cpp
+++ b/alc/effects/autowah.cpp
@@ -38,7 +38,7 @@ namespace {
#define MAX_FREQ 2500.0f
#define Q_FACTOR 5.0f
-struct ALautowahState final : public EffectState {
+struct AutowahState final : public EffectState {
/* Effect parameters */
ALfloat mAttackRate;
ALfloat mReleaseRate;
@@ -73,10 +73,10 @@ struct ALautowahState final : public EffectState {
void update(const ALCcontext *context, const ALeffectslot *slot, const EffectProps *props, const EffectTarget target) override;
void process(const size_t samplesToDo, const al::span<const FloatBufferLine> samplesIn, const al::span<FloatBufferLine> samplesOut) override;
- DEF_NEWDEL(ALautowahState)
+ DEF_NEWDEL(AutowahState)
};
-ALboolean ALautowahState::deviceUpdate(const ALCdevice*)
+ALboolean AutowahState::deviceUpdate(const ALCdevice*)
{
/* (Re-)initializing parameters and clear the buffers. */
@@ -104,7 +104,7 @@ ALboolean ALautowahState::deviceUpdate(const ALCdevice*)
return AL_TRUE;
}
-void ALautowahState::update(const ALCcontext *context, const ALeffectslot *slot, const EffectProps *props, const EffectTarget target)
+void AutowahState::update(const ALCcontext *context, const ALeffectslot *slot, const EffectProps *props, const EffectTarget target)
{
const ALCdevice *device{context->mDevice.get()};
const auto frequency = static_cast<float>(device->Frequency);
@@ -127,7 +127,7 @@ void ALautowahState::update(const ALCcontext *context, const ALeffectslot *slot,
}
}
-void ALautowahState::process(const size_t samplesToDo, const al::span<const FloatBufferLine> samplesIn, const al::span<FloatBufferLine> samplesOut)
+void AutowahState::process(const size_t samplesToDo, const al::span<const FloatBufferLine> samplesIn, const al::span<FloatBufferLine> samplesOut)
{
const ALfloat attack_rate = mAttackRate;
const ALfloat release_rate = mReleaseRate;
@@ -198,7 +198,7 @@ void ALautowahState::process(const size_t samplesToDo, const al::span<const Floa
}
-void ALautowah_setParamf(EffectProps *props, ALCcontext *context, ALenum param, ALfloat val)
+void Autowah_setParamf(EffectProps *props, ALCcontext *context, ALenum param, ALfloat val)
{
switch(param)
{
@@ -230,15 +230,15 @@ void ALautowah_setParamf(EffectProps *props, ALCcontext *context, ALenum 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 Autowah_setParamfv(EffectProps *props, ALCcontext *context, ALenum param, const ALfloat *vals)
+{ Autowah_setParamf(props, context, param, vals[0]); }
-void ALautowah_setParami(EffectProps*, ALCcontext *context, ALenum param, ALint)
+void Autowah_setParami(EffectProps*, ALCcontext *context, ALenum param, ALint)
{ context->setError(AL_INVALID_ENUM, "Invalid autowah integer property 0x%04x", param); }
-void ALautowah_setParamiv(EffectProps*, ALCcontext *context, ALenum param, const ALint*)
+void Autowah_setParamiv(EffectProps*, ALCcontext *context, ALenum param, const ALint*)
{ 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)
+void Autowah_getParamf(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *val)
{
switch(param)
{
@@ -263,21 +263,21 @@ void ALautowah_getParamf(const EffectProps *props, ALCcontext *context, ALenum p
}
}
-void ALautowah_getParamfv(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *vals)
-{ ALautowah_getParamf(props, context, param, vals); }
+void Autowah_getParamfv(const EffectProps *props, ALCcontext *context, ALenum param, ALfloat *vals)
+{ Autowah_getParamf(props, context, param, vals); }
-void ALautowah_getParami(const EffectProps*, ALCcontext *context, ALenum param, ALint*)
+void Autowah_getParami(const EffectProps*, ALCcontext *context, ALenum param, ALint*)
{ context->setError(AL_INVALID_ENUM, "Invalid autowah integer property 0x%04x", param); }
-void ALautowah_getParamiv(const EffectProps*, ALCcontext *context, ALenum param, ALint*)
+void Autowah_getParamiv(const EffectProps*, ALCcontext *context, ALenum param, ALint*)
{ context->setError(AL_INVALID_ENUM, "Invalid autowah integer vector property 0x%04x", param); }
-DEFINE_ALEFFECT_VTABLE(ALautowah);
+DEFINE_ALEFFECT_VTABLE(Autowah);
struct AutowahStateFactory final : public EffectStateFactory {
- EffectState *create() override { return new ALautowahState{}; }
+ EffectState *create() override { return new AutowahState{}; }
EffectProps getDefaultProps() const noexcept override;
- const EffectVtable *getEffectVtable() const noexcept override { return &ALautowah_vtable; }
+ const EffectVtable *getEffectVtable() const noexcept override { return &Autowah_vtable; }
};
EffectProps AutowahStateFactory::getDefaultProps() const noexcept