Skip to content

Commit d951b79

Browse files
authored
Merge pull request #25 from evan314159/feature/aifc
Add AIFC support for 32-bit float samples, as well as 16-24 bit integer samples
2 parents 375a78f + dafb6f2 commit d951b79

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/main.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ struct Cli {
9595
#[arg(short = 'i', long = "inrate", default_value = "1")]
9696
input_rate: u32,
9797

98-
/// Output type: S (stdout), A (aif), W (wave), F (flac)
99-
/// Note that W, A, or F outputs to either
100-
/// <basename>.[wav|aif|flac] in current directory,
98+
/// Output type: S (stdout), A (aif), C (aifc), W (wave), F (flac)
99+
/// Note that W, A, C, or F outputs to either
100+
/// <basename>.[wav|aif|aifc|flac] in current directory,
101101
/// where <basename> is the input filename
102-
/// without the extension, or output.[wav|aif|flac]
102+
/// without the extension, or output.[wav|aif|aifc|flac]
103103
/// (if reading from stdin.)
104104
#[arg(short = 'o', long = "output", default_value = "S")]
105105
output: char,
@@ -207,6 +207,7 @@ fn run() -> Result<(), Box<dyn Error>> {
207207
let output = match cli.output.to_ascii_lowercase() {
208208
's' => OutputType::Stdout,
209209
'a' => OutputType::Aiff,
210+
'c' => OutputType::Aifc,
210211
'w' => OutputType::Wav,
211212
'f' => OutputType::Flac,
212213
_ => OutputType::Stdout,

0 commit comments

Comments
 (0)