mirror of
https://github.com/iluvcapra/bwavfile.git
synced 2026-01-01 17:30:44 +00:00
Writer implementation
creaet_frame_buffer() interface has been moved to WaveFmt
This commit is contained in:
@@ -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
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user