diff options
author | David Barksdale <amatus@amatus.name> | 2014-04-30 21:55:43 -0500 |
---|---|---|
committer | David Barksdale <amatus@amatus.name> | 2014-04-30 21:55:43 -0500 |
commit | 597473c58d6d69ec9eeda6ddab33c74550c8de23 (patch) | |
tree | 0ae111c19bb734b8d75c14423af88fb45f46a9ad | |
parent | 91418dd8b477f415eb0e9ef09e7e4a2cec6b0a8b (diff) |
-rw-r--r-- | per.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -54,9 +54,6 @@ fn main() { None => fail!("Unable to open dsp device") }; dsp.reset(); - dsp.set_format(); - dsp.set_stereo(); - lame.set_num_channels(2); let dsp_speeds = match matches.opt_strs("r") { [] => DSP_SPEEDS, r => r.map(|x| { from_str::<int>(*x).unwrap() }) @@ -71,6 +68,9 @@ fn main() { break; } } + dsp.set_format(); + dsp.set_stereo(); + lame.set_num_channels(2); let quality = match matches.opt_str("q") { Some(q) => from_str::<int>(q).unwrap(), None => 2 |