From 8d2a15be3f8f9e3f5bc1620cf11603b2a910bd56 Mon Sep 17 00:00:00 2001 From: ITotalJustice <47043333+ITotalJustice@users.noreply.github.com> Date: Fri, 11 Jul 2025 01:01:03 +0100 Subject: [PATCH] AudioCommon/Mixer: make large array in Mixer::MixerFifo::Enqueue() static so that it's not created on the stack. --- Source/Core/AudioCommon/Mixer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/AudioCommon/Mixer.cpp b/Source/Core/AudioCommon/Mixer.cpp index b981ebf45b..ce2a3e429e 100644 --- a/Source/Core/AudioCommon/Mixer.cpp +++ b/Source/Core/AudioCommon/Mixer.cpp @@ -452,7 +452,7 @@ void Mixer::MixerFifo::Enqueue() // elements = ", ".join([f"{x:.10f}f" for x in window]) // print(f'constexpr std::array GRANULE_WINDOW = {{ {elements} // }};') - constexpr std::array GRANULE_WINDOW = { + static constexpr std::array GRANULE_WINDOW = { 0.0000016272f, 0.0000050749f, 0.0000113187f, 0.0000216492f, 0.0000377350f, 0.0000616906f, 0.0000961509f, 0.0001443499f, 0.0002102045f, 0.0002984010f, 0.0004144844f, 0.0005649486f, 0.0007573262f, 0.0010002765f, 0.0013036694f, 0.0016786636f, 0.0021377783f, 0.0026949534f,