aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects/compressor.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/compressor.cpp
parent8e9833c7a6dfe53b570d5a021888f2a5397b4796 (diff)
Change a couple macros to constexpr variables
Diffstat (limited to 'alc/effects/compressor.cpp')
-rw-r--r--alc/effects/compressor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/effects/compressor.cpp b/alc/effects/compressor.cpp
index c57bd58c..299394cf 100644
--- a/alc/effects/compressor.cpp
+++ b/alc/effects/compressor.cpp
@@ -65,7 +65,7 @@ namespace {
struct CompressorState final : public EffectState {
/* Effect gains for each channel */
struct {
- uint mTarget{INVALID_CHANNEL_INDEX};
+ uint mTarget{InvalidChannelIndex};
float mGain{1.0f};
} mChans[MaxAmbiChannels];
@@ -168,7 +168,7 @@ void CompressorState::process(const size_t samplesToDo,
for(const auto &input : samplesIn)
{
const size_t outidx{chan->mTarget};
- if(outidx != INVALID_CHANNEL_INDEX)
+ if(outidx != InvalidChannelIndex)
{
const float *RESTRICT src{input.data() + base};
float *RESTRICT dst{samplesOut[outidx].data() + base};