pub struct AudioSpec {
pub codec: AudioCodec,
pub bitrate_bps: u64,
pub mono: bool,
pub sample_rate: Option<u32>,
pub vbr: bool,
}Expand description
Audio encoding parameters (absent means drop the track).
Fields§
§codec: AudioCodec§bitrate_bps: u64§mono: boolDownmix to a single channel.
sample_rate: Option<u32>Resample to this rate (Hz); None keeps the source rate.
vbr: boolPrefer VBR where the codec supports it.
Implementations§
Trait Implementations§
impl StructuralPartialEq for AudioSpec
Auto Trait Implementations§
impl Freeze for AudioSpec
impl RefUnwindSafe for AudioSpec
impl Send for AudioSpec
impl Sync for AudioSpec
impl Unpin for AudioSpec
impl UnsafeUnpin for AudioSpec
impl UnwindSafe for AudioSpec
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