pub struct Audio {
pub sample_rate: f64,
pub channels: u64,
pub bit_depth: Option<u64>,
}
Expand description
An audio track’s specifications
Fields§
§sample_rate: f64
The sample rate in Hz
channels: u64
The number of audio channels
bit_depth: Option<u64>
The bit depth of each sample
Trait Implementations§
source§impl PartialEq for Audio
impl PartialEq for Audio
impl StructuralPartialEq for Audio
Auto Trait Implementations§
impl RefUnwindSafe for Audio
impl Send for Audio
impl Sync for Audio
impl Unpin for Audio
impl UnwindSafe for Audio
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