diff options
author | Chris Robinson <[email protected]> | 2021-12-23 13:43:10 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-12-23 13:43:10 -0800 |
commit | f1aa10ff0b710d6647f7ce728de5a8d0e5b8a45f (patch) | |
tree | 018c601ddda961c41676d156b31b27b6277d9019 /alc/alu.cpp | |
parent | 0af1b5f7218cf60e3a51f43903f3c5461cdcbdf8 (diff) |
Use a bitset instead of a plain uint for flags
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r-- | alc/alu.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp index 81b5c605..37d5a1ed 100644 --- a/alc/alu.cpp +++ b/alc/alu.cpp @@ -776,7 +776,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con break; } - voice->mFlags &= ~(VoiceHasHrtf | VoiceHasNfc); + voice->mFlags.reset(VoiceHasHrtf).reset(VoiceHasNfc); if(auto *decoder{voice->mDecoder.get()}) decoder->mWidthControl = props->EnhWidth; @@ -807,7 +807,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con voice->mChans[0].mDryParams.NFCtrlFilter.adjust(w0); } - voice->mFlags |= VoiceHasNfc; + voice->mFlags.set(VoiceHasNfc); } /* Panning a B-Format sound toward some direction is easy. Just pan the @@ -1040,7 +1040,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con } } - voice->mFlags |= VoiceHasHrtf; + voice->mFlags.set(VoiceHasHrtf); } else { @@ -1061,7 +1061,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con for(size_t c{0};c < num_channels;c++) voice->mChans[c].mDryParams.NFCtrlFilter.adjust(w0); - voice->mFlags |= VoiceHasNfc; + voice->mFlags.set(VoiceHasNfc); } /* Calculate the directional coefficients once, which apply to all @@ -1112,7 +1112,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con for(size_t c{0};c < num_channels;c++) voice->mChans[c].mDryParams.NFCtrlFilter.adjust(w0); - voice->mFlags |= VoiceHasNfc; + voice->mFlags.set(VoiceHasNfc); } for(size_t c{0};c < num_channels;c++) |