pub struct Mp3 {
pub sample_rate: u32,
pub channels: usize,
pub samples: Vec<f32>,
}Expand description
An MP3 stream decoded as soundfile (libsndfile 1.2.2 + mpg123 1.32.3,
arm64) returns it.
Fields§
§sample_rate: u32Samples per second.
channels: usizeChannel count.
samples: Vec<f32>Interleaved samples.
Auto Trait Implementations§
impl Forget for Mp3
impl Freeze for Mp3
impl Move for Mp3
impl RefUnwindSafe for Mp3
impl Send for Mp3
impl Sync for Mp3
impl Unpin for Mp3
impl UnsafeUnpin for Mp3
impl UnwindSafe for Mp3
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> 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