#[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_ms: 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_ms: u32Encoded frame duration in milliseconds. Opus accepts 2.5/5/10/20/40/60 ms; pass 20 to match the JS publish path. (For 2.5 ms, the caller must pre-round; integer ms only.)
Auto Trait Implementations§
impl Freeze for moq_audio_encoder_output
impl RefUnwindSafe for moq_audio_encoder_output
impl !Send for moq_audio_encoder_output
impl !Sync 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<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