-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathwave-inter.rs
35 lines (29 loc) · 950 Bytes
/
wave-inter.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//! wave-inter.rs
//! (c) 2021 Jamie Hardt. All rights reserved.
//!
//! This program demonstrates combining several wave files into a single
//! polyphonic wave file.
use std::io;
extern crate bwavfile;
#[macro_use]
extern crate clap;
use clap::{App, Arg};
fn main() -> io::Result<()> {
let matches = App::new("wave-inter")
.version(crate_version!())
.author(crate_authors!())
.about("Combine several wave files into a single polyphonic wave file.")
.arg(Arg::with_name("OUTPUT")
.long("output")
.short("o")
.help("Output file name. If absent, will be basename, minus any channel extension, of first INPUT.")
)
.arg(Arg::with_name("INPUT")
.help("Input wave file")
.required(true)
.multiple(true)
)
.get_matches();
println!("Command line opts: {:?}", matches);
todo!("Finish implementation");
}