Support XA-Audio (buggy)

This commit is contained in:
Jaby
2024-05-26 14:49:48 +02:00
committed by Jaby
parent 6e8afbec86
commit 5319ede54c
4 changed files with 43 additions and 27 deletions

View File

@@ -23,13 +23,6 @@ impl Quality {
Self::High => 37800,
}
}
fn get_bith_depth(&self) -> u64 {
match self {
Self::Low => 4,
Self::High => 8,
}
}
}
#[derive(Copy, Clone, ValueEnum)]
@@ -67,7 +60,7 @@ pub fn convert(args: Arguments, input: PathBuf, output: PathBuf) -> Result<(), E
let result = Command::new(tool_path).args([
"-t", "xacd",
"-f", quality.get_frequency().to_string().as_ref(),
"-b", quality.get_bith_depth().to_string().as_ref(),
"-b", "4",
"-c", sample.get_channel().to_string().as_ref(),
"-F", "0",
"-C", "0",