Trait sndfile::SndFileNDArrayIO
source · [−]pub trait SndFileNDArrayIO<T> {
fn read_to_ndarray(
&mut self,
dst: ArrayViewMut2<'_, T>
) -> Result<usize, ()>;
fn write_from_ndarray(
&mut self,
src: ArrayView2<'_, T>
) -> Result<usize, ()>;
fn read_all_to_ndarray(&mut self) -> Result<Array2<T>, ()>;
}
Expand description
Do I/O operation on 2D ndarray.
The array shape must be (n_frames, n_channels).