diff options
author | Chris Robinson <[email protected]> | 2020-10-21 10:39:00 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-10-21 10:39:00 -0700 |
commit | b8f5e1f4247e8a1d1ebdbe39dad6b235d6d50daa (patch) | |
tree | 32f0465fdb9a3b6e5a63c8d3e549b9b1d2e30547 /alc/alu.cpp | |
parent | a3ea46f77385a2a489a06209d47d1fe1b911848f (diff) |
Change some more macros into constexpr variables
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 ba44980c..722ef1e1 100644 --- a/alc/alu.cpp +++ b/alc/alu.cpp @@ -818,7 +818,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con break; } - voice->mFlags &= ~(VOICE_HAS_HRTF | VOICE_HAS_NFC); + voice->mFlags &= ~(VoiceHasHrtf | VoiceHasNfc); if(voice->mFmtChannels == FmtBFormat2D || voice->mFmtChannels == FmtBFormat3D) { /* Special handling for B-Format sources. */ @@ -845,7 +845,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con voice->mChans[0].mDryParams.NFCtrlFilter.adjust(w0); } - voice->mFlags |= VOICE_HAS_NFC; + voice->mFlags |= VoiceHasNfc; } /* Panning a B-Format sound toward some direction is easy. Just pan the @@ -1076,7 +1076,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con } } - voice->mFlags |= VOICE_HAS_HRTF; + voice->mFlags |= VoiceHasHrtf; } else { @@ -1097,7 +1097,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 |= VOICE_HAS_NFC; + voice->mFlags |= VoiceHasNfc; } /* Calculate the directional coefficients once, which apply to all @@ -1148,7 +1148,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 |= VOICE_HAS_NFC; + voice->mFlags |= VoiceHasNfc; } for(size_t c{0};c < num_channels;c++) |