mirror of
https://github.com/iluvcapra/bwavfile.git
synced 2025-12-31 08:50:44 +00:00
Introduce generic read_frames and write_frames functions
This commit is contained in:
@@ -208,7 +208,7 @@ fn create_blits_file(file_name: &str, sample_rate: u32, bits_per_sample: u16) ->
|
||||
let mut fw = file.audio_frame_writer()?;
|
||||
for frame in frames {
|
||||
let buf = vec![frame.0, frame.1, frame.2, frame.3, frame.4, frame.5];
|
||||
fw.write_integer_frames(&buf)?;
|
||||
fw.write_frames(&buf)?;
|
||||
}
|
||||
fw.end()?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user