From cadf0d1de5ca5a845b0e6fdb3aaaff7c8c741f9e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 23 Feb 2022 01:29:28 -0800 Subject: Make some local constexpr variables static --- alc/backends/base.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/backends/base.cpp') diff --git a/alc/backends/base.cpp b/alc/backends/base.cpp index dea29a80..cd1b76ba 100644 --- a/alc/backends/base.cpp +++ b/alc/backends/base.cpp @@ -142,9 +142,9 @@ void BackendBase::setDefaultChannelOrder() #ifdef _WIN32 void BackendBase::setChannelOrderFromWFXMask(uint chanmask) { - constexpr uint x51{SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER + static constexpr uint x51{SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_SIDE_LEFT | SPEAKER_SIDE_RIGHT}; - constexpr uint x51rear{SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER + static constexpr uint x51rear{SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT}; /* Swap a 5.1 mask using the back channels for one with the sides. */ if(chanmask == x51rear) chanmask = x51; -- cgit v1.2.3