Struct audio_processor_file::InMemoryAudioFile
source · [−]pub struct InMemoryAudioFile { /* private fields */ }
Implementations
sourceimpl InMemoryAudioFile
impl InMemoryAudioFile
pub fn new(audio_file: ProbeResult) -> Self
pub fn from_path(path: &str) -> Result<Self, AudioFileError>
sourcepub fn read_into_vec_audio_buffer(
&mut self,
settings: &AudioProcessorSettings
) -> Result<VecAudioBuffer<f32>, AudioFileError>
pub fn read_into_vec_audio_buffer(
&mut self,
settings: &AudioProcessorSettings
) -> Result<VecAudioBuffer<f32>, AudioFileError>
Eagerly read the file onto memory, do sample rate conversion into the target AudioProcessorSettings and return a VecAudioBuffer containing the file’s contents.
Auto Trait Implementations
impl !RefUnwindSafe for InMemoryAudioFile
impl Send for InMemoryAudioFile
impl Sync for InMemoryAudioFile
impl Unpin for InMemoryAudioFile
impl !UnwindSafe for InMemoryAudioFile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more