diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/main.rs b/src/main.rs index 062a77c..7a0d7c1 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -20,8 +20,6 @@ mod cli; | |||
20 | mod parsing; | 20 | mod parsing; |
21 | mod utils; | 21 | mod utils; |
22 | 22 | ||
23 | #[cfg(feature = "pa-eq")] | ||
24 | mod pa_eq; | ||
25 | #[cfg(feature = "pa-effects")] | 23 | #[cfg(feature = "pa-effects")] |
26 | mod pa_effects; | 24 | mod pa_effects; |
27 | 25 | ||
@@ -37,24 +35,6 @@ pub struct Filter { | |||
37 | coefficients: Vec<f64>, | 35 | coefficients: Vec<f64>, |
38 | } | 36 | } |
39 | 37 | ||
40 | impl Filter { | ||
41 | fn pad(self, filter_rate: u32) -> Self { | ||
42 | Filter { | ||
43 | preamp: self.preamp, | ||
44 | frequencies: vec![0u32] | ||
45 | .into_iter() | ||
46 | .chain(self.frequencies.into_iter()) | ||
47 | .chain(vec![filter_rate / 2u32]) | ||
48 | .collect(), | ||
49 | coefficients: vec![1f64] | ||
50 | .into_iter() | ||
51 | .chain(self.coefficients.into_iter()) | ||
52 | .chain(vec![1f64]) | ||
53 | .collect(), | ||
54 | } | ||
55 | } | ||
56 | } | ||
57 | |||
58 | fn main() { | 38 | fn main() { |
59 | match start() { | 39 | match start() { |
60 | Ok(()) => (), | 40 | Ok(()) => (), |