pub struct AudioTrack {
pub codec: AudioCodec,
pub codec_private: Bytes,
pub sample_rate: u32,
pub channels: u32,
pub speakers: Option<SpeakerLayout>,
pub bits_per_sample: Option<u16>,
pub priming: u32,
pub seek_preroll: Option<u32>,
}Expand description
An audio track’s sound facts.
Fields§
§codec: AudioCodecThe codec.
codec_private: BytesThe codec’s setup data (see AudioCodec); empty when it has none.
sample_rate: u32Samples per second.
channels: u32Channel count.
speakers: Option<SpeakerLayout>Speaker positions the container declares (chan, WAVEFORMATEXTENSIBLE mask), when it
does.
bits_per_sample: Option<u16>Bits per decoded sample, when stated.
priming: u32Decoder output samples to drop at the start: AAC priming from the edit list or
iTunSMPB, Matroska CodecDelay, Opus pre-skip.
seek_preroll: Option<u32>Samples a decoder needs to decode before a seek target to converge, in the units of
Self::priming (Matroska SeekPreRoll), when the container declares it.
Trait Implementations§
Source§impl Clone for AudioTrack
impl Clone for AudioTrack
Source§impl Debug for AudioTrack
impl Debug for AudioTrack
Source§impl PartialEq for AudioTrack
impl PartialEq for AudioTrack
impl StructuralPartialEq for AudioTrack
Auto Trait Implementations§
impl !Freeze for AudioTrack
impl Forget for AudioTrack
impl Move for AudioTrack
impl RefUnwindSafe for AudioTrack
impl Send for AudioTrack
impl Sync for AudioTrack
impl Unpin for AudioTrack
impl UnsafeUnpin for AudioTrack
impl UnwindSafe for AudioTrack
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