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/alu.cpp | |
parent | 8e9833c7a6dfe53b570d5a021888f2a5397b4796 (diff) |
Change a couple macros to constexpr variables
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r-- | alc/alu.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp index 207c7c84..7b844c58 100644 --- a/alc/alu.cpp +++ b/alc/alu.cpp @@ -993,7 +993,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con for(size_t c{0};c < num_channels;c++) { uint idx{Device->channelIdxByName(chans[c].channel)}; - if(idx != INVALID_CHANNEL_INDEX) + if(idx != InvalidChannelIndex) voice->mChans[c].mDryParams.Gains.Target[idx] = DryGain.Base; else if(DirectChannels == DirectMode::RemixMismatch) { @@ -1006,7 +1006,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con for(const auto &target : remap->targets) { idx = Device->channelIdxByName(target.channel); - if(idx != INVALID_CHANNEL_INDEX) + if(idx != InvalidChannelIndex) voice->mChans[c].mDryParams.Gains.Target[idx] = DryGain.Base * target.mix; } @@ -1197,7 +1197,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con if(Device->Dry.Buffer.data() == Device->RealOut.Buffer.data()) { const uint idx{Device->channelIdxByName(chans[c].channel)}; - if(idx != INVALID_CHANNEL_INDEX) + if(idx != InvalidChannelIndex) voice->mChans[c].mDryParams.Gains.Target[idx] = DryGain.Base; } continue; @@ -1263,7 +1263,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con if(Device->Dry.Buffer.data() == Device->RealOut.Buffer.data()) { const uint idx{Device->channelIdxByName(chans[c].channel)}; - if(idx != INVALID_CHANNEL_INDEX) + if(idx != InvalidChannelIndex) voice->mChans[c].mDryParams.Gains.Target[idx] = DryGain.Base; } continue; |