aboutsummaryrefslogtreecommitdiffstats
path: root/al/buffer.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 /al/buffer.cpp
parent7176247529e5e115fb1cd72b56145cb13ba947c6 (diff)
Make some local constexpr variables static
Diffstat (limited to 'al/buffer.cpp')
-rw-r--r--al/buffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/al/buffer.cpp b/al/buffer.cpp
index 8a5bee25..3d9caf54 100644
--- a/al/buffer.cpp
+++ b/al/buffer.cpp
@@ -761,7 +761,7 @@ void PrepareCallback(ALCcontext *context, ALbuffer *ALBuf, ALsizei freq,
const ALuint ambiorder{IsBFormat(*DstChannels) ? ALBuf->UnpackAmbiOrder :
(IsUHJ(*DstChannels) ? 1 : 0)};
- constexpr uint line_size{BufferLineSize + MaxPostVoiceLoad};
+ static constexpr uint line_size{BufferLineSize + MaxPostVoiceLoad};
al::vector<al::byte,16>(FrameSizeFromFmt(*DstChannels, *DstType, ambiorder) *
size_t{line_size}).swap(ALBuf->mData);