diff options
author | Chris Robinson <[email protected]> | 2023-01-15 17:49:14 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-01-15 17:49:14 -0800 |
commit | eef886b0f215877a3888391122bac8bdb0b76ddf (patch) | |
tree | e30884590938213edc724906f6b3cd9536fbda79 /alc/alu.cpp | |
parent | 88796d2ad51f014f0ec236c0e1df624ac8224cb7 (diff) |
Precalculate reused scale factors
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r-- | alc/alu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp index a171067a..207c7c84 100644 --- a/alc/alu.cpp +++ b/alc/alu.cpp @@ -866,7 +866,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con * scaling. */ std::transform(coeffs.begin(), coeffs.end(), coeffs.begin(), - [coverage, &scales](auto a){ return a * ((1.0f-coverage)*scales[0]); }); + [scale=(1.0f-coverage)*scales[0]](const float c){ return c * scale; }); if(!(coverage > 0.0f)) { |