aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/base.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-02-23 01:29:28 -0800
committerChris Robinson <[email protected]>2022-02-23 01:29:28 -0800
commitcadf0d1de5ca5a845b0e6fdb3aaaff7c8c741f9e (patch)
tree1c621fdecb8ea86033229e19f85d1a786dada4d4 /alc/backends/base.cpp
parent7176247529e5e115fb1cd72b56145cb13ba947c6 (diff)
Make some local constexpr variables static
Diffstat (limited to 'alc/backends/base.cpp')
-rw-r--r--alc/backends/base.cpp4
1 files changed, 2 insertions, 2 deletions
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;