From 597473c58d6d69ec9eeda6ddab33c74550c8de23 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Wed, 30 Apr 2014 21:55:43 -0500 Subject: The wolfson driver wants speed set first. --- per.rs | 6 +++--- 1 file 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::(*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::(q).unwrap(), None => 2 -- cgit v1.2.3-18-g5258