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/vmorpher.cpp | |
parent | 8e9833c7a6dfe53b570d5a021888f2a5397b4796 (diff) |
Change a couple macros to constexpr variables
Diffstat (limited to 'alc/effects/vmorpher.cpp')
-rw-r--r-- | alc/effects/vmorpher.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/effects/vmorpher.cpp b/alc/effects/vmorpher.cpp index 0eb136f9..97267ad9 100644 --- a/alc/effects/vmorpher.cpp +++ b/alc/effects/vmorpher.cpp @@ -143,7 +143,7 @@ struct FormantFilter struct VmorpherState final : public EffectState { struct { - uint mTargetChannel{INVALID_CHANNEL_INDEX}; + uint mTargetChannel{InvalidChannelIndex}; /* Effect parameters */ FormantFilter mFormants[NUM_FILTERS][NUM_FORMANTS]; @@ -231,7 +231,7 @@ void VmorpherState::deviceUpdate(const DeviceBase*, const Buffer&) { for(auto &e : mChans) { - e.mTargetChannel = INVALID_CHANNEL_INDEX; + e.mTargetChannel = InvalidChannelIndex; std::for_each(std::begin(e.mFormants[VOWEL_A_INDEX]), std::end(e.mFormants[VOWEL_A_INDEX]), std::mem_fn(&FormantFilter::clear)); std::for_each(std::begin(e.mFormants[VOWEL_B_INDEX]), std::end(e.mFormants[VOWEL_B_INDEX]), @@ -298,7 +298,7 @@ void VmorpherState::process(const size_t samplesToDo, const al::span<const Float for(const auto &input : samplesIn) { const size_t outidx{chandata->mTargetChannel}; - if(outidx == INVALID_CHANNEL_INDEX) + if(outidx == InvalidChannelIndex) { ++chandata; continue; |