pub struct AudioFile { /* private fields */ }Expand description
The best sound track of a file as interleaved stereo f32 at 48 kHz.
Implementations§
Source§impl AudioFile
impl AudioFile
pub const CHANNELS: u16
pub const RATE: u32 = OUT_RATE
pub fn open(path: &Path) -> Result<AudioFile>
Sourcepub fn next_sample(&mut self) -> Option<f32>
pub fn next_sample(&mut self) -> Option<f32>
The next sample, or None at the end.
Sourcepub fn next_block(&mut self) -> Option<&[f32]>
pub fn next_block(&mut self) -> Option<&[f32]>
The rest of the decoded block, or the next one: interleaved stereo,
never empty; None at the end.
Auto Trait Implementations§
impl !Sync for AudioFile
impl Freeze for AudioFile
impl RefUnwindSafe for AudioFile
impl Send for AudioFile
impl Unpin for AudioFile
impl UnsafeUnpin for AudioFile
impl UnwindSafe for AudioFile
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