aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-09-16 14:46:18 -0700
committerChris Robinson <[email protected]>2022-09-16 14:46:18 -0700
commit0dd11a8e3c26674f943a57259d33ddbfd6081039 (patch)
treea338b60c2ff2a42c733a5f9c4190cfaf3de6973f
parent4aa5d7c8f0e1613f1253c8fed286d2e9e454b972 (diff)
Correctly check if a multi-channel decoder is set
-rw-r--r--alc/panning.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/panning.cpp b/alc/panning.cpp
index ddbefd52..6447f0f8 100644
--- a/alc/panning.cpp
+++ b/alc/panning.cpp
@@ -978,7 +978,7 @@ void aluInitRenderer(ALCdevice *device, int hrtf_id, al::optional<StereoEncoding
&& device->getConfigValueBool(nullptr, "front-stablizer", 0) != 0};
const bool hqdec{device->getConfigValueBool("decoder", "hq-mode", 1) != 0};
InitPanning(device, hqdec, stablize, decoder);
- if(decoder.mOrder > 0)
+ if(decoder)
{
float accum_dist{0.0f}, spkr_count{0.0f};
for(auto dist : speakerdists)