aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-08-18 20:40:45 -0700
committerChris Robinson <[email protected]>2022-08-18 20:40:45 -0700
commit1482f0b23de8a82e41ae9db1bdd898a8aea9f67e (patch)
tree1f319c70eb763ae0fe69c8bac3d3f0fc0a3766e6 /alc
parentdff86eb7830218d7eb49fe4b934c6549a8184bab (diff)
Skip LFE for aux send gains with Direct Channels
Diffstat (limited to 'alc')
-rw-r--r--alc/alu.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp
index 0c4b1cb1..dcd3c7d2 100644
--- a/alc/alu.cpp
+++ b/alc/alu.cpp
@@ -1044,6 +1044,10 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con
*/
for(size_t c{0};c < num_channels;c++)
{
+ /* Skip LFE */
+ if(chans[c].channel == LFE)
+ continue;
+
const auto coeffs = CalcAngleCoeffs(chans[c].angle, chans[c].elevation, 0.0f);
for(uint i{0};i < NumSends;i++)