summaryrefslogtreecommitdiff
path: root/per.rs
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amatus.name>2014-04-30 21:55:43 -0500
committerDavid Barksdale <amatus@amatus.name>2014-04-30 21:55:43 -0500
commit597473c58d6d69ec9eeda6ddab33c74550c8de23 (patch)
tree0ae111c19bb734b8d75c14423af88fb45f46a9ad /per.rs
parent91418dd8b477f415eb0e9ef09e7e4a2cec6b0a8b (diff)
The wolfson driver wants speed set first.HEADmaster
Diffstat (limited to 'per.rs')
-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