From a700edc1716181d899b670826e615969815fa0c8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 31 Jul 2022 05:11:22 -0700 Subject: Check the channel count for a valid DecoderView Ambisonic decoders can be zeroth order, but they need at least one output channel. --- alc/panning.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alc') 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 { return *this; } - explicit operator bool() const noexcept { return mOrder != 0; } + explicit operator bool() const noexcept { return !mChannels.empty(); } }; using DecoderView = DecoderConfig; -- cgit v1.2.3