[vlc-devel] [PATCH 03/16] aout: display "Ambisonics" and the order for the channel format
Thomas Guillem
thomas at gllm.fr
Fri Jul 7 16:02:49 CEST 2017
From: Adrien Maglo <magsoft at videolan.org>
and "Binaural" for the binauralized streams.
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
---
src/audio_output/common.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/audio_output/common.c b/src/audio_output/common.c
index 66bf5b3849..60ed1047bb 100644
--- a/src/audio_output/common.c
+++ b/src/audio_output/common.c
@@ -105,6 +105,10 @@ void aout_FormatPrepare( audio_sample_format_t * p_format )
*****************************************************************************/
const char * aout_FormatPrintChannels( const audio_sample_format_t * p_format )
{
+ if (p_format->channels_type == AUDIO_CHANNELS_TYPE_AMBISONICS)
+ return "Ambisonics";
+
+ /* AUDIO_CHANNELS_TYPE_PHYSICAL */
switch ( p_format->i_physical_channels )
{
case AOUT_CHAN_LEFT:
@@ -130,6 +134,8 @@ const char * aout_FormatPrintChannels( const audio_sample_format_t * p_format )
return "Dolby";
else if ( p_format->i_original_channels & AOUT_CHAN_DUALMONO )
return "Dual-mono";
+ else if ( p_format->i_original_channels & AOUT_CHAN_BINAURAL )
+ return "Binaural";
else if ( p_format->i_original_channels == AOUT_CHAN_CENTER )
return "Stereo/Mono";
else if ( !(p_format->i_original_channels & AOUT_CHAN_RIGHT) )
--
2.11.0
More information about the vlc-devel
mailing list