diff options
author | Chris Robinson <[email protected]> | 2022-07-31 05:11:22 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-08-02 18:26:49 -0700 |
commit | a700edc1716181d899b670826e615969815fa0c8 (patch) | |
tree | 68d3dd83651f8e1d32131a3bf41dc609200bbd80 /alc | |
parent | 5bea47915ae0fcdb0fb88d1e5b89834202c8926a (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.cpp | 2 |
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>; |