pub struct AdtsConfig {
pub profile: AacProfile,
pub sample_rate: u32,
pub channels: u8,
}Expand description
Per-frame ADTS header fields (no CRC, single raw-data-block-per-frame — the common case for AAC-LC streams).
Fields§
§profile: AacProfileMPEG-4 audio object type.
sample_rate: u32Sample rate — must be one of the 13 standard ADTS rates.
channels: u8Channel configuration (1..=7; 0 = channel config sent out-of-band, unsupported here).
Trait Implementations§
Source§impl Clone for AdtsConfig
impl Clone for AdtsConfig
Source§fn clone(&self) -> AdtsConfig
fn clone(&self) -> AdtsConfig
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 AdtsConfig
Source§impl Debug for AdtsConfig
impl Debug for AdtsConfig
impl Eq for AdtsConfig
Source§impl PartialEq for AdtsConfig
impl PartialEq for AdtsConfig
impl StructuralPartialEq for AdtsConfig
Auto Trait Implementations§
impl Freeze for AdtsConfig
impl RefUnwindSafe for AdtsConfig
impl Send for AdtsConfig
impl Sync for AdtsConfig
impl Unpin for AdtsConfig
impl UnsafeUnpin for AdtsConfig
impl UnwindSafe for AdtsConfig
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