summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--per.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/per.rs b/per.rs
index ecfe187..6d37bb8 100644
--- a/per.rs
+++ b/per.rs
@@ -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