Writer implementation

creaet_frame_buffer() interface has been moved to WaveFmt
This commit is contained in:
Jamie Hardt
2020-12-24 22:57:54 -08:00
parent e2e029d3a3
commit 465bad40fc
7 changed files with 92 additions and 18 deletions

View File

@@ -62,13 +62,6 @@ impl<R: Read + Seek> AudioFrameReader<R> {
Ok( (seek_result - self.start) / self.format.block_alignment as u64 )
}
/// Create a frame buffer sized to hold frames of the reader
///
/// This is a conveneince method that creates a `Vec<i32>` with
/// as many elements as there are channels in the underlying stream.
pub fn create_frame_buffer(&self) -> Vec<i32> {
vec![0i32; self.format.channel_count as usize]
}
/// Read a frame
///