pub struct SampleBuffer<T> {
pub data: Vec<T>,
pub right: Option<Vec<T>>,
pub sample_rate: f32,
pub channels: u16,
pub name: String,
}Expand description
Metadata container for a loaded sample.
Fields§
§data: Vec<T>Audio data (mono: single channel interleaved; stereo: deinterleaved into two vecs).
right: Option<Vec<T>>Right-channel data (None for mono).
sample_rate: f32Original sample rate.
channels: u16Number of channels (1 or 2).
name: StringDisplay name.
Implementations§
Auto Trait Implementations§
impl<T> Freeze for SampleBuffer<T>
impl<T> RefUnwindSafe for SampleBuffer<T>where
T: RefUnwindSafe,
impl<T> Send for SampleBuffer<T>where
T: Send,
impl<T> Sync for SampleBuffer<T>where
T: Sync,
impl<T> Unpin for SampleBuffer<T>where
T: Unpin,
impl<T> UnsafeUnpin for SampleBuffer<T>
impl<T> UnwindSafe for SampleBuffer<T>where
T: UnwindSafe,
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