diff options
author | Chris Robinson <[email protected]> | 2023-01-16 21:45:03 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-01-16 21:45:03 -0800 |
commit | 3d00147b99d4996f322ff231a7e0e7d9aff86f60 (patch) | |
tree | aa6dde806a0d279fad83d77dbbf4f5f8356c6ce4 /alc/effects/autowah.cpp | |
parent | 8e9833c7a6dfe53b570d5a021888f2a5397b4796 (diff) |
Change a couple macros to constexpr variables
Diffstat (limited to 'alc/effects/autowah.cpp')
-rw-r--r-- | alc/effects/autowah.cpp | 6 |
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; |