aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/alffplay.cpp2
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;