12 #ifndef ROC_AUDIO_CHANNEL_DEFS_H_
13 #define ROC_AUDIO_CHANNEL_DEFS_H_
171 ChanMask_Surround_Mono
183 static const ChannelMask ChanMask_Surround_1_1_3c =
184 ChanMask_Surround_1_1 |
195 static const ChannelMask ChanMask_Surround_Stereo =
207 ChanMask_Surround_Stereo
231 ChanMask_Surround_3_0
243 static const ChannelMask ChanMask_Surround_3_1_3c =
244 ChanMask_Surround_3_1
271 ChanMask_Surround_4_0
298 ChanMask_Surround_5_0
311 static const ChannelMask ChanMask_Surround_5_1_3c =
312 ChanMask_Surround_5_1
327 ChanMask_Surround_5_1
341 static const ChannelMask ChanMask_Surround_5_1_2_3c =
342 ChanMask_Surround_5_1_2
358 ChanMask_Surround_5_1
374 static const ChannelMask ChanMask_Surround_5_1_4_3c =
375 ChanMask_Surround_5_1_4
402 ChanMask_Surround_6_0
415 static const ChannelMask ChanMask_Surround_6_1_3c =
416 ChanMask_Surround_6_1
444 ChanMask_Surround_7_0
457 static const ChannelMask ChanMask_Surround_7_1_3c =
458 ChanMask_Surround_7_1
474 ChanMask_Surround_7_1
489 static const ChannelMask ChanMask_Surround_7_1_2_3c =
490 ChanMask_Surround_7_1_2
506 ChanMask_Surround_7_1
522 static const ChannelMask ChanMask_Surround_7_1_4_3c =
523 ChanMask_Surround_7_1_4
const char * channel_order_to_str(ChannelOrder)
Get string name of channel order.
const char * channel_mask_to_str(ChannelMask)
Get string name from channel mask.
ChannelPosition
Surround channel position.
@ ChanPos_SideLeft
Side left (SL).
@ ChanPos_FrontLeftOfCenter
Front left of center (FLC).
@ ChanPos_Max
Maximum value of enum.
@ ChanPos_TopBackLeft
Top rear left (TBL).
@ ChanPos_FrontCenter
Front center (FC).
@ ChanPos_FrontLeft
Front left (FL).
@ ChanPos_LowFrequency
Low frequency speaker (LFE).
@ ChanPos_TopFrontLeft
Top front left (TFL).
@ ChanPos_FrontRight
Front right (FR).
@ ChanPos_BackRight
Back right (BR).
@ ChanPos_TopBackRight
Top rear right (TBR).
@ ChanPos_SideRight
Side right (SR).
@ ChanPos_BackLeft
Back left (BL).
@ ChanPos_TopMidRight
Top middle right (TMR).
@ ChanPos_BackCenter
Back center (BC).
@ ChanPos_FrontRightOfCenter
Front right of center (FRC).
@ ChanPos_TopMidLeft
Top middle left (TML).
@ ChanPos_TopFrontRight
Top front right (TFR).
const char * channel_pos_to_str(ChannelPosition)
Get string name from channel position.
ChannelLayout
Channel layout. Defines meaning of channels in ChannelSet. ChannelMapper uses channel layout to decid...
@ ChanLayout_Multitrack
Multi-channel multi-track sound.
@ ChanLayout_None
Channel layout is not set.
@ ChanLayout_Surround
Multi-channel mono / stereo / surround sound.
uint32_t ChannelMask
Channel mask.
const char * channel_layout_to_str(ChannelLayout)
Get string name of channel layout.
ChannelOrder
Surround channel order.
@ ChanOrder_Max
Maximum value of enum.
@ ChanOrder_None
Channel order is not set.
@ ChanOrder_Smpte
ITU/SMPTE channel order. Order: FL, FR, FC, LFE, BL, BR, BC, SL, SR, TFL, TFR, TBL,...
@ ChanOrder_Alsa
ALSA channel order. Order: FL, FR, BL, BR, FC, LFE, SL, SR, BC.
Commonly used types and functions.