pub enum AudioPolicy {
Auto,
ForceOpus,
Drop,
}Expand description
How the source audio track is handled.
Variants§
Auto
Passthrough AAC / Opus / AC-3 / E-AC-3 verbatim; transcode MP3 / Vorbis to Opus; drop anything else.
ForceOpus
Keep/produce Opus: passthrough Opus, transcode everything else to Opus.
Drop
Drop audio entirely (video-only output).
Trait Implementations§
Source§impl Clone for AudioPolicy
impl Clone for AudioPolicy
Source§fn clone(&self) -> AudioPolicy
fn clone(&self) -> AudioPolicy
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 moreimpl Copy for AudioPolicy
Source§impl Debug for AudioPolicy
impl Debug for AudioPolicy
Source§impl Default for AudioPolicy
impl Default for AudioPolicy
Source§fn default() -> AudioPolicy
fn default() -> AudioPolicy
Returns the “default value” for a type. Read more
impl Eq for AudioPolicy
Source§impl PartialEq for AudioPolicy
impl PartialEq for AudioPolicy
Source§fn eq(&self, other: &AudioPolicy) -> bool
fn eq(&self, other: &AudioPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AudioPolicy
Auto Trait Implementations§
impl Freeze for AudioPolicy
impl RefUnwindSafe for AudioPolicy
impl Send for AudioPolicy
impl Sync for AudioPolicy
impl Unpin for AudioPolicy
impl UnsafeUnpin for AudioPolicy
impl UnwindSafe for AudioPolicy
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