Avutil.Channel_layout
Formats for channels layouts.
type t = [
| `Native
| `Mono
| `Stereo
| `_2point1
| `_2_1
| `Surround
| `_3point1
| `_4point0
| `_4point1
| `_2_2
| `Quad
| `_5point0
| `_5point1
| `_5point0_back
| `_5point1_back
| `_6point0
| `_6point0_front
| `Hexagonal
| `_6point1
| `_6point1_back
| `_6point1_front
| `_7point0
| `_7point0_front
| `_7point1
| `_7point1_wide
| `_7point1_wide_back
| `Octagonal
| `Hexadecagonal
| `Stereo_downmix
| `_22point2
]
Channel layout formats.
val find : string -> t
Return a channel layout id that matches name. Raises Not_found
otherwise. name can be one or several of the following notations, separated by '+' or '|':
val get_description : ?channels:int -> t -> string
Return a description of the channel layout.
val get_nb_channels : t -> int
Return the number of channels in the channel layout.
val get_default : int -> t
Return default channel layout for a given number of channels. Raises Not_found
if not found.
val get_id : t -> int64
Return the internal ID for a channel layout. This number should be passed as the "channel_layout" opts
in Av.new_audio_stream
.