aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects/autowah.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-01-16 21:45:03 -0800
committerChris Robinson <[email protected]>2023-01-16 21:45:03 -0800
commit3d00147b99d4996f322ff231a7e0e7d9aff86f60 (patch)
treeaa6dde806a0d279fad83d77dbbf4f5f8356c6ce4 /alc/effects/autowah.cpp
parent8e9833c7a6dfe53b570d5a021888f2a5397b4796 (diff)
Change a couple macros to constexpr variables
Diffstat (limited to 'alc/effects/autowah.cpp')
-rw-r--r--alc/effects/autowah.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/effects/autowah.cpp b/alc/effects/autowah.cpp
index 50ec0268..f32c69b8 100644
--- a/alc/effects/autowah.cpp
+++ b/alc/effects/autowah.cpp
@@ -65,7 +65,7 @@ struct AutowahState final : public EffectState {
} mEnv[BufferLineSize];
struct {
- uint mTargetChannel{INVALID_CHANNEL_INDEX};
+ uint mTargetChannel{InvalidChannelIndex};
/* Effect filters' history. */
struct {
@@ -110,7 +110,7 @@ void AutowahState::deviceUpdate(const DeviceBase*, const Buffer&)
for(auto &chan : mChans)
{
- chan.mTargetChannel = INVALID_CHANNEL_INDEX;
+ chan.mTargetChannel = InvalidChannelIndex;
chan.mFilter.z1 = 0.0f;
chan.mFilter.z2 = 0.0f;
chan.mCurrentGain = 0.0f;
@@ -175,7 +175,7 @@ void AutowahState::process(const size_t samplesToDo,
for(const auto &insamples : samplesIn)
{
const size_t outidx{chandata->mTargetChannel};
- if(outidx == INVALID_CHANNEL_INDEX)
+ if(outidx == InvalidChannelIndex)
{
++chandata;
continue;