Update wav rust library

This commit is contained in:
2024-05-26 17:55:54 +02:00
parent e00740f57f
commit e60c18e4f0
4 changed files with 37 additions and 23 deletions

View File

@@ -11,6 +11,7 @@ byteorder = "1.5.0"
cdtypes = {path = "../cdtypes"}
colored = "2.0.4"
envmnt = "0.10.4"
hound = "3.5.1"
lz4 = "1.24.0"
paste = "1.0.14"
wslpath = {path = "../wslpath"}

View File

@@ -123,6 +123,12 @@ impl std::convert::From<std::sync::mpsc::RecvError> for Error {
}
}
impl std::convert::From<hound::Error> for Error {
fn from(error: hound::Error) -> Self {
Error::from_error(error)
}
}
pub fn exit_with_error(error: Error) {
error.print_to_std_err();
std::process::exit(error.exit_code);