Added buffered IO

And updated tests to reflect this
This commit is contained in:
Jamie Hardt
2021-01-02 12:23:08 -08:00
parent b7f82a9d63
commit 634c21dc9a
4 changed files with 25 additions and 7 deletions

View File

@@ -30,7 +30,7 @@ fn assert_match_stream<T>(stream_key: &str,
.for_each(|value| {
let filen : &str = value["format"]["filename"].as_str().unwrap();
let json_value : &Value = &value["streams"][0][stream_key];
let mut wavfile = WaveReader::open(filen).unwrap();
let mut wavfile = WaveReader::open_unbuffered(filen).unwrap();
let wavfile_value: T = other(&mut wavfile);
println!("asserting {} for {}",stream_key, filen);
assert_eq!(Into::<Value>::into(wavfile_value), *json_value);