Added buffered IO

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

No files matched your search

+1 -1
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);