#[repr(C)]pub struct moq_audio_init {
pub format: u32,
pub init: *const u8,
pub init_len: usize,
pub label: *const c_char,
pub label_len: usize,
}Expand description
Configuration for moq_publish_audio.
Zero the struct, then set format and the required init bytes. New
optional fields are appended so existing initializers keep their meaning.
Fields§
§format: u32The audio codec, a moq_audio_format value.
init: *const u8Codec init bytes: an OpusHead, an AudioSpecificConfig, a STREAMINFO. Required, since audio has no in-band config to resolve from frames.
init_len: usizeLength of init in bytes.
label: *const c_charHuman-readable rendition name for track pickers, or NULL if not used.
label_len: usizeLength of label in bytes.
Auto Trait Implementations§
impl !Send for moq_audio_init
impl !Sync for moq_audio_init
impl Freeze for moq_audio_init
impl RefUnwindSafe for moq_audio_init
impl Unpin for moq_audio_init
impl UnsafeUnpin for moq_audio_init
impl UnwindSafe for moq_audio_init
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more