[vlc-commits] ES: add a property to audio_format_t for Ambisonics support

Adrien Maglo git at videolan.org
Wed Jul 19 18:57:08 CEST 2017


vlc | branch: master | Adrien Maglo <magsoft at videolan.org> | Thu Mar 16 09:35:21 2017 +0100| [a5ce50a1692591c771cbc20b5bf7ebf54f2bc2ed] | committer: Thomas Guillem

ES: add a property to audio_format_t for Ambisonics support

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a5ce50a1692591c771cbc20b5bf7ebf54f2bc2ed
---

 include/vlc_es.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/include/vlc_es.h b/include/vlc_es.h
index 2c622b50b9..19bea66ec2 100644
--- a/include/vlc_es.h
+++ b/include/vlc_es.h
@@ -65,6 +65,16 @@ typedef struct
     float      pf_gain[AUDIO_REPLAY_GAIN_MAX];
 } audio_replay_gain_t;
 
+
+/**
+ * Audio channel type
+ */
+typedef enum audio_channel_type_t
+{
+    AUDIO_CHANNEL_TYPE_BITMAP,
+    AUDIO_CHANNEL_TYPE_AMBISONICS,
+} audio_channel_type_t;
+
 /**
  * audio format description
  */
@@ -82,6 +92,9 @@ struct audio_format_t
      * filters. */
     uint16_t     i_chan_mode;
 
+    /* Channel type */
+    audio_channel_type_t channel_type;
+
     /* Optional - for A/52, SPDIF and DTS types : */
     /* Bytes used by one compressed frame, depends on bitrate. */
     unsigned int i_bytes_per_frame;



More information about the vlc-commits mailing list