diff --git a/data/testcue.cue b/data/testcue.cue index 886070d..544dd83 100644 --- a/data/testcue.cue +++ b/data/testcue.cue @@ -2,7 +2,7 @@ REM GENRE Random REM DATE 2022 PERFORMER "Polochon_street" TITLE "Album for CUE test" -FILE "testcue.wav" WAVE +FILE "testcue.flac" WAVE TRACK 01 AUDIO TITLE "Renaissance" PERFORMER "David TMX" diff --git a/data/testcue.flac b/data/testcue.flac new file mode 100644 index 0000000..70a5aff Binary files /dev/null and b/data/testcue.flac differ diff --git a/data/testcue.wav b/data/testcue.wav deleted file mode 100644 index cbd9832..0000000 Binary files a/data/testcue.wav and /dev/null differ diff --git a/src/cue.rs b/src/cue.rs index cd736e0..cc1abb0 100644 --- a/src/cue.rs +++ b/src/cue.rs @@ -192,7 +192,7 @@ mod tests { let songs = BlissCue::songs_from_path("data/testcue.cue").unwrap(); let expected = vec![ Ok(Song { - path: Path::new("data/testcue.wav/CUE_TRACK001").to_path_buf(), + path: Path::new("data/testcue.flac/CUE_TRACK001").to_path_buf(), analysis: Analysis { internal_analysis: [ 0.38463724, @@ -227,12 +227,12 @@ mod tests { duration: Duration::from_secs_f32(11.066666603), cue_info: Some(CueInfo { cue_path: PathBuf::from("data/testcue.cue"), - audio_file_path: PathBuf::from("data/testcue.wav"), + audio_file_path: PathBuf::from("data/testcue.flac"), }), ..Default::default() }), Ok(Song { - path: Path::new("data/testcue.wav/CUE_TRACK002").to_path_buf(), + path: Path::new("data/testcue.flac/CUE_TRACK002").to_path_buf(), analysis: Analysis { internal_analysis: [ 0.18622077, @@ -267,12 +267,12 @@ mod tests { duration: Duration::from_secs_f64(5.853333473), cue_info: Some(CueInfo { cue_path: PathBuf::from("data/testcue.cue"), - audio_file_path: PathBuf::from("data/testcue.wav"), + audio_file_path: PathBuf::from("data/testcue.flac"), }), ..Default::default() }), Ok(Song { - path: Path::new("data/testcue.wav/CUE_TRACK003").to_path_buf(), + path: Path::new("data/testcue.flac/CUE_TRACK003").to_path_buf(), analysis: Analysis { internal_analysis: [ 0.0024261475, @@ -307,7 +307,7 @@ mod tests { duration: Duration::from_secs_f32(5.586666584), cue_info: Some(CueInfo { cue_path: PathBuf::from("data/testcue.cue"), - audio_file_path: PathBuf::from("data/testcue.wav"), + audio_file_path: PathBuf::from("data/testcue.flac"), }), ..Default::default() }), diff --git a/src/lib.rs b/src/lib.rs index 71603b8..6d899e7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -262,9 +262,9 @@ mod tests { ),), ), (true, String::from("./data/s16_mono_22_5kHz.flac"), None), - (true, String::from("./data/testcue.wav/CUE_TRACK001"), None), - (true, String::from("./data/testcue.wav/CUE_TRACK002"), None), - (true, String::from("./data/testcue.wav/CUE_TRACK003"), None), + (true, String::from("./data/testcue.flac/CUE_TRACK001"), None), + (true, String::from("./data/testcue.flac/CUE_TRACK002"), None), + (true, String::from("./data/testcue.flac/CUE_TRACK003"), None), (true, String::from("./data/white_noise.flac"), None), ], );