pub struct AudioStream {
pub pid: u16,
pub codec: Codec,
pub channels: AudioChannels,
pub language: String,
pub sample_rate: SampleRate,
pub secondary: bool,
pub purpose: LabelPurpose,
pub label: String,
}Expand description
An audio stream.
Fields§
§pid: u16MPEG-TS packet ID
codec: CodecCodec (TrueHD, DTS-HD MA, DD, LPCM, etc.)
channels: AudioChannelsChannel layout
language: StringISO 639-2 language code (e.g. “eng”, “fra”)
sample_rate: SampleRateSample rate
secondary: boolWhether this is a secondary stream (commentary)
purpose: LabelPurposeStream purpose (commentary / descriptive / score / IME / normal). Callers translate this to display text in their own locale.
label: StringCodec / variant text (e.g. “Dolby TrueHD 5.1”, “(US)”).
NEVER contains English purpose words — see purpose for that.
Trait Implementations§
Source§impl Clone for AudioStream
impl Clone for AudioStream
Source§fn clone(&self) -> AudioStream
fn clone(&self) -> AudioStream
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AudioStream
impl RefUnwindSafe for AudioStream
impl Send for AudioStream
impl Sync for AudioStream
impl Unpin for AudioStream
impl UnsafeUnpin for AudioStream
impl UnwindSafe for AudioStream
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