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/compressor.cpp | |
parent | 8e9833c7a6dfe53b570d5a021888f2a5397b4796 (diff) |
Change a couple macros to constexpr variables
Diffstat (limited to 'alc/effects/compressor.cpp')
-rw-r--r-- | alc/effects/compressor.cpp | 4 |
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}; |