aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-07-31 05:11:22 -0700
committerChris Robinson <[email protected]>2022-08-02 18:26:49 -0700
commita700edc1716181d899b670826e615969815fa0c8 (patch)
tree68d3dd83651f8e1d32131a3bf41dc609200bbd80 /alc
parent5bea47915ae0fcdb0fb88d1e5b89834202c8926a (diff)
Check the channel count for a valid DecoderView
Ambisonic decoders can be zeroth order, but they need at least one output channel.
Diffstat (limited to 'alc')
-rw-r--r--alc/panning.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/panning.cpp b/alc/panning.cpp
index d79d672e..847c7391 100644
--- a/alc/panning.cpp
+++ b/alc/panning.cpp
@@ -220,7 +220,7 @@ struct DecoderConfig<DualBand, 0> {
return *this;
}
- explicit operator bool() const noexcept { return mOrder != 0; }
+ explicit operator bool() const noexcept { return !mChannels.empty(); }
};
using DecoderView = DecoderConfig<DualBand, 0>;