#[repr(C)]pub struct moq_audio_encoder_output {
pub codec: *const c_char,
pub codec_len: usize,
pub sample_rate: u32,
pub channels: u32,
pub bitrate: u32,
pub frame_duration_us: u32,
}Expand description
Codec-side configuration. sample_rate / channels = 0 means
“match the input (snapping the rate up to a libopus-supported
value if necessary)”.
Fields§
§codec: *const c_charCodec id, UTF-8 (currently only “opus”).
codec_len: usize§sample_rate: u320 = derive from input.
channels: u320 = derive from input.
bitrate: u320 = libopus default.
frame_duration_us: u32Encoded frame duration in microseconds. Opus accepts exactly 2500/5000/10000/20000/40000/60000 us. 0 = the 20 ms default, which matches the JS publish path.
Auto Trait Implementations§
impl !Send for moq_audio_encoder_output
impl !Sync for moq_audio_encoder_output
impl Freeze for moq_audio_encoder_output
impl RefUnwindSafe for moq_audio_encoder_output
impl Unpin for moq_audio_encoder_output
impl UnsafeUnpin for moq_audio_encoder_output
impl UnwindSafe for moq_audio_encoder_output
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