|
|
@ -173,9 +173,7 @@ impl Channel { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
pub fn iir_biquad_set_params_high_pass_filter(&self, cut_off_freq: f32, quality: f32) { |
|
|
|
pub fn iir_biquad_set_params_high_pass_filter(&self, cut_off_freq: f32, quality: f32) { |
|
|
|
unsafe { |
|
|
|
unsafe { ctru_sys::ndspChnIirBiquadSetParamsHighPassFilter(self.0, cut_off_freq, quality) }; |
|
|
|
ctru_sys::ndspChnIirBiquadSetParamsHighPassFilter(self.0, cut_off_freq, quality) |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
pub fn iir_biquad_set_params_low_pass_filter(&self, cut_off_freq: f32, quality: f32) { |
|
|
|
pub fn iir_biquad_set_params_low_pass_filter(&self, cut_off_freq: f32, quality: f32) { |
|
|
@ -197,12 +195,7 @@ impl Channel { |
|
|
|
gain: f32, |
|
|
|
gain: f32, |
|
|
|
) { |
|
|
|
) { |
|
|
|
unsafe { |
|
|
|
unsafe { |
|
|
|
ctru_sys::ndspChnIirBiquadSetParamsPeakingEqualizer( |
|
|
|
ctru_sys::ndspChnIirBiquadSetParamsPeakingEqualizer(self.0, central_freq, quality, gain) |
|
|
|
self.0, |
|
|
|
|
|
|
|
central_freq, |
|
|
|
|
|
|
|
quality, |
|
|
|
|
|
|
|
gain, |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|