aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects/modulator.cpp
diff options
context:
space:
mode:
authorChris Robinson <chris.kcat@gmail.com>2023-01-16 21:45:03 -0800
committerChris Robinson <chris.kcat@gmail.com>2023-01-16 21:45:03 -0800
commit3d00147b99d4996f322ff231a7e0e7d9aff86f60 (patch)
treeaa6dde806a0d279fad83d77dbbf4f5f8356c6ce4 /alc/effects/modulator.cpp
parent8e9833c7a6dfe53b570d5a021888f2a5397b4796 (diff)
Change a couple macros to constexpr variables
Diffstat (limited to 'alc/effects/modulator.cpp')
-rw-r--r--alc/effects/modulator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/effects/modulator.cpp b/alc/effects/modulator.cpp
index aa0b1f70..79993c0d 100644
--- a/alc/effects/modulator.cpp
+++ b/alc/effects/modulator.cpp
@@ -84,7 +84,7 @@ struct ModulatorState final : public EffectState {
uint mStep{1};
struct {
- uint mTargetChannel{INVALID_CHANNEL_INDEX};
+ uint mTargetChannel{InvalidChannelIndex};
BiquadFilter mFilter;
@@ -106,7 +106,7 @@ void ModulatorState::deviceUpdate(const DeviceBase*, const Buffer&)
{
for(auto &e : mChans)
{
- e.mTargetChannel = INVALID_CHANNEL_INDEX;
+ e.mTargetChannel = InvalidChannelIndex;
e.mFilter.clear();
e.mCurrentGain = 0.0f;
}
@@ -160,7 +160,7 @@ void ModulatorState::process(const size_t samplesToDo, const al::span<const Floa
for(const auto &input : samplesIn)
{
const size_t outidx{chandata->mTargetChannel};
- if(outidx != INVALID_CHANNEL_INDEX)
+ if(outidx != InvalidChannelIndex)
{
alignas(16) float temps[MAX_UPDATE_SAMPLES];