Update psxfileconv
This commit is contained in:
parent
9b8921bb47
commit
132f8925f4
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "psxfileconv"
|
name = "psxfileconv"
|
||||||
version = "0.6.0"
|
version = "0.7.5"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
pub mod my_xa;
|
pub mod xa;
|
||||||
pub mod vag;
|
pub mod vag;
|
|
@ -1,4 +1,4 @@
|
||||||
use crate::audio::my_xa::{raw_audio::{CDAudioSamples, Orality}, Frequency, SampleDepth};
|
use crate::audio::xa::{raw_audio::{CDAudioSamples, Orality}, Frequency, SampleDepth};
|
||||||
use cdtypes::types::sector::{Mode2Form2, XAADPCMBitsPerSample, XAADPCMSampleRate, XAADPCMSound};
|
use cdtypes::types::sector::{Mode2Form2, XAADPCMBitsPerSample, XAADPCMSampleRate, XAADPCMSound};
|
||||||
use tool_helper::Error;
|
use tool_helper::Error;
|
||||||
|
|
|
@ -25,7 +25,7 @@ enum SubCommands {
|
||||||
Nothing,
|
Nothing,
|
||||||
SimpleTIM(reduced_tim::Arguments),
|
SimpleTIM(reduced_tim::Arguments),
|
||||||
VAG(vag::Arguments),
|
VAG(vag::Arguments),
|
||||||
XA(my_xa::Arguments),
|
XA(xa::Arguments),
|
||||||
}
|
}
|
||||||
|
|
||||||
fn run_main(cmd: CommandLine) -> Result<(), Error> {
|
fn run_main(cmd: CommandLine) -> Result<(), Error> {
|
||||||
|
@ -47,7 +47,7 @@ fn run_main(cmd: CommandLine) -> Result<(), Error> {
|
||||||
SubCommands::Nothing => nothing::copy(&mut input, dst_buffer),
|
SubCommands::Nothing => nothing::copy(&mut input, dst_buffer),
|
||||||
SubCommands::SimpleTIM(args) => reduced_tim::convert(args, input, dst_buffer),
|
SubCommands::SimpleTIM(args) => reduced_tim::convert(args, input, dst_buffer),
|
||||||
SubCommands::VAG(args) => audio::vag::convert(args, &cmd.output_file, input, dst_buffer),
|
SubCommands::VAG(args) => audio::vag::convert(args, &cmd.output_file, input, dst_buffer),
|
||||||
SubCommands::XA(args) => audio::my_xa::convert(args, input, dst_buffer),
|
SubCommands::XA(args) => audio::xa::convert(args, input, dst_buffer),
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue