Change CUE to flac for size
This commit is contained in:
parent
a0fe109b96
commit
f3006e843c
5 changed files with 10 additions and 10 deletions
|
@ -2,7 +2,7 @@ REM GENRE Random
|
||||||
REM DATE 2022
|
REM DATE 2022
|
||||||
PERFORMER "Polochon_street"
|
PERFORMER "Polochon_street"
|
||||||
TITLE "Album for CUE test"
|
TITLE "Album for CUE test"
|
||||||
FILE "testcue.wav" WAVE
|
FILE "testcue.flac" WAVE
|
||||||
TRACK 01 AUDIO
|
TRACK 01 AUDIO
|
||||||
TITLE "Renaissance"
|
TITLE "Renaissance"
|
||||||
PERFORMER "David TMX"
|
PERFORMER "David TMX"
|
||||||
|
|
BIN
data/testcue.flac
Normal file
BIN
data/testcue.flac
Normal file
Binary file not shown.
BIN
data/testcue.wav
BIN
data/testcue.wav
Binary file not shown.
12
src/cue.rs
12
src/cue.rs
|
@ -192,7 +192,7 @@ mod tests {
|
||||||
let songs = BlissCue::songs_from_path("data/testcue.cue").unwrap();
|
let songs = BlissCue::songs_from_path("data/testcue.cue").unwrap();
|
||||||
let expected = vec![
|
let expected = vec![
|
||||||
Ok(Song {
|
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 {
|
analysis: Analysis {
|
||||||
internal_analysis: [
|
internal_analysis: [
|
||||||
0.38463724,
|
0.38463724,
|
||||||
|
@ -227,12 +227,12 @@ mod tests {
|
||||||
duration: Duration::from_secs_f32(11.066666603),
|
duration: Duration::from_secs_f32(11.066666603),
|
||||||
cue_info: Some(CueInfo {
|
cue_info: Some(CueInfo {
|
||||||
cue_path: PathBuf::from("data/testcue.cue"),
|
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()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
Ok(Song {
|
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 {
|
analysis: Analysis {
|
||||||
internal_analysis: [
|
internal_analysis: [
|
||||||
0.18622077,
|
0.18622077,
|
||||||
|
@ -267,12 +267,12 @@ mod tests {
|
||||||
duration: Duration::from_secs_f64(5.853333473),
|
duration: Duration::from_secs_f64(5.853333473),
|
||||||
cue_info: Some(CueInfo {
|
cue_info: Some(CueInfo {
|
||||||
cue_path: PathBuf::from("data/testcue.cue"),
|
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()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
Ok(Song {
|
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 {
|
analysis: Analysis {
|
||||||
internal_analysis: [
|
internal_analysis: [
|
||||||
0.0024261475,
|
0.0024261475,
|
||||||
|
@ -307,7 +307,7 @@ mod tests {
|
||||||
duration: Duration::from_secs_f32(5.586666584),
|
duration: Duration::from_secs_f32(5.586666584),
|
||||||
cue_info: Some(CueInfo {
|
cue_info: Some(CueInfo {
|
||||||
cue_path: PathBuf::from("data/testcue.cue"),
|
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()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -262,9 +262,9 @@ mod tests {
|
||||||
),),
|
),),
|
||||||
),
|
),
|
||||||
(true, String::from("./data/s16_mono_22_5kHz.flac"), None),
|
(true, String::from("./data/s16_mono_22_5kHz.flac"), None),
|
||||||
(true, String::from("./data/testcue.wav/CUE_TRACK001"), None),
|
(true, String::from("./data/testcue.flac/CUE_TRACK001"), None),
|
||||||
(true, String::from("./data/testcue.wav/CUE_TRACK002"), None),
|
(true, String::from("./data/testcue.flac/CUE_TRACK002"), None),
|
||||||
(true, String::from("./data/testcue.wav/CUE_TRACK003"), None),
|
(true, String::from("./data/testcue.flac/CUE_TRACK003"), None),
|
||||||
(true, String::from("./data/white_noise.flac"), None),
|
(true, String::from("./data/white_noise.flac"), None),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue