pub struct EncoderOutput {
pub codec: Codec,
pub sample_rate: Option<u32>,
pub channels: Option<u32>,
pub bitrate: Option<u32>,
pub frame_duration: Duration,
}Expand description
Codec-side configuration. sample_rate and channels are
optional overrides; None means “match input (snapping the rate
up to a libopus-supported value if necessary)”.
Fields§
§codec: Codec§sample_rate: Option<u32>§channels: Option<u32>§bitrate: Option<u32>libopus bitrate in bits per second. None lets libopus pick.
frame_duration: DurationEncoded frame duration. Opus accepts 2.5 / 5 / 10 / 20 / 40 / 60 ms.
Trait Implementations§
Source§impl Clone for EncoderOutput
impl Clone for EncoderOutput
Source§fn clone(&self) -> EncoderOutput
fn clone(&self) -> EncoderOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncoderOutput
impl Debug for EncoderOutput
Auto Trait Implementations§
impl Freeze for EncoderOutput
impl RefUnwindSafe for EncoderOutput
impl Send for EncoderOutput
impl Sync for EncoderOutput
impl Unpin for EncoderOutput
impl UnsafeUnpin for EncoderOutput
impl UnwindSafe for EncoderOutput
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