diff options
author | Marc Mutz <[email protected]> | 2025-07-04 10:18:26 +0200 |
---|---|---|
committer | Marc Mutz <[email protected]> | 2025-07-04 17:09:32 +0000 |
commit | 791bb7b240d991b06c08ede49dc0d831857c0c73 (patch) | |
tree | 1d986703ea945385262d95b442732979a0448ecd /src | |
parent | cb0c0b68669e08c8372cdd8e4e8a2a4d2d410db5 (diff) |
(was: mutable)
This table shouldn't be mutable, because that would probably be a data
race. Thankfully, nothing modifies it, so it's trivially marked as
constexpr.
Amends a4f90d61bd2e36333401b011b59cdb94105b615b.
Pick-to: 6.10 6.9 6.8 6.5
Change-Id: I916e9e2444b61f51ee3bc436f5ed5b39bdabec15
Reviewed-by: Lars Knoll <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/spatialaudio/qaudioroom.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spatialaudio/qaudioroom.cpp b/src/spatialaudio/qaudioroom.cpp index 899152c4c..e599370d8 100644 --- a/src/spatialaudio/qaudioroom.cpp +++ b/src/spatialaudio/qaudioroom.cpp @@ -43,7 +43,7 @@ inline void toFloats(QQuaternion q, QSpan<float, 4> f) // We define both occlusion and dampening constants to be able to tune the // sound. Dampening only reduces the level of the sound without affecting its // tone, while occlusion will dampen higher frequencies more than lower ones -struct { +constexpr struct { float occlusion; float dampening; } occlusionAndDampening[] = { |