pub struct AudioSpecificConfig {
pub object_type: u32,
pub sampling_index: usize,
pub sample_rate: u32,
pub chan_config: u32,
pub channels: usize,
pub sbr: i32,
pub ps: i32,
pub ext_sample_rate: u32,
pub elem_tag: u32,
}Expand description
The parts of an AudioSpecificConfig the decoder uses.
Fields§
§object_type: u32The core object type (2, AAC-LC; an explicit SBR/PS type 5/29 is
recorded in sbr/ps).
sampling_index: usizesamplingFrequencyIndex.
sample_rate: u32The core sampling rate.
chan_config: u32channelConfiguration.
channels: usizeOutput channels.
sbr: i32-1 unknown (implicit SBR possible), 0 absent, 1 present.
ps: i32Parametric stereo: -1 unknown, 0 absent, 1 present.
ext_sample_rate: u32The SBR output rate when signalled (0 when not).
elem_tag: u32The element instance tag of the single SCE/CPE (from a PCE; 0 for the indexed configurations).
Implementations§
Trait Implementations§
Source§impl Clone for AudioSpecificConfig
impl Clone for AudioSpecificConfig
Source§impl Debug for AudioSpecificConfig
impl Debug for AudioSpecificConfig
impl Eq for AudioSpecificConfig
Source§impl PartialEq for AudioSpecificConfig
impl PartialEq for AudioSpecificConfig
impl StructuralPartialEq for AudioSpecificConfig
Auto Trait Implementations§
impl Forget for AudioSpecificConfig
impl Freeze for AudioSpecificConfig
impl RefUnwindSafe for AudioSpecificConfig
impl Send for AudioSpecificConfig
impl Sync for AudioSpecificConfig
impl Unpin for AudioSpecificConfig
impl UnsafeUnpin for AudioSpecificConfig
impl UnwindSafe for AudioSpecificConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more