diff options
author | Chris Robinson <[email protected]> | 2022-09-24 16:31:43 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-09-24 16:31:43 -0700 |
commit | b2ab8841d2d37296db317a1174392ed041faed97 (patch) | |
tree | 34e9ff28487cf14c9624e5df0dbdb224e60af9b4 /examples/alffplay.cpp | |
parent | a326bf4e6452b1260a36e2b719d47aa0f0361f95 (diff) |
Fix an ambisonic layout check in alffplay
Diffstat (limited to 'examples/alffplay.cpp')
-rw-r--r-- | examples/alffplay.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/alffplay.cpp b/examples/alffplay.cpp index ec40f89a..ef7aa89d 100644 --- a/examples/alffplay.cpp +++ b/examples/alffplay.cpp @@ -1099,7 +1099,7 @@ int AudioState::handler() mFormat = AL_FORMAT_MONO16; } } - else if(mCodecCtx->ch_layout.order == AV_CHANNEL_ORDER_NATIVE + else if(mCodecCtx->ch_layout.order == AV_CHANNEL_ORDER_AMBISONIC && alIsExtensionPresent("AL_EXT_BFORMAT")) { auto order = static_cast<int>(std::sqrt(mCodecCtx->ch_layout.nb_channels)) - 1; |