From 953745d38643b62dd10ba6d8c1e2e4c7fa20eb30 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 12 Dec 2021 15:53:53 -0800 Subject: Make an inline function to check for 2D ambisonic formats --- core/buffer_storage.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/buffer_storage.h') diff --git a/core/buffer_storage.h b/core/buffer_storage.h index 091882f9..cde7704e 100644 --- a/core/buffer_storage.h +++ b/core/buffer_storage.h @@ -66,6 +66,12 @@ constexpr bool IsUHJ(FmtChannels chans) noexcept constexpr bool IsAmbisonic(FmtChannels chans) noexcept { return IsBFormat(chans) || IsUHJ(chans); } +constexpr bool Is2DAmbisonic(FmtChannels chans) noexcept +{ + return chans == FmtBFormat2D || chans == FmtUHJ2 || chans == FmtUHJ3 + || chans == FmtSuperStereo; +} + using CallbackType = int(*)(void*, void*, int); -- cgit v1.2.3