diff options
author | Chris Robinson <[email protected]> | 2022-09-16 14:46:18 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-09-16 14:46:18 -0700 |
commit | 0dd11a8e3c26674f943a57259d33ddbfd6081039 (patch) | |
tree | a338b60c2ff2a42c733a5f9c4190cfaf3de6973f /alc | |
parent | 4aa5d7c8f0e1613f1253c8fed286d2e9e454b972 (diff) |
Correctly check if a multi-channel decoder is set
Diffstat (limited to 'alc')
-rw-r--r-- | alc/panning.cpp | 2 |
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) |