diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/rbcodec/dsp/dsp.c | 9 | ||||
| -rw-r--r-- | lib/rbcodec/dsp/dsp.h | 2 |
2 files changed, 3 insertions, 8 deletions
diff --git a/lib/rbcodec/dsp/dsp.c b/lib/rbcodec/dsp/dsp.c index 4061fa7..de647dc 100644 --- a/lib/rbcodec/dsp/dsp.c +++ b/lib/rbcodec/dsp/dsp.c @@ -951,15 +951,10 @@ void dsp_set_eq_precut(int precut) * * @param band the equalizer band to synchronize */ -void dsp_set_eq_coefs(int band) +void dsp_set_eq_coefs(int band, int cutoff, int q, int gain) { - /* Adjust setting pointer to the band we actually want to change */ - struct eq_band_setting *setting = &global_settings.eq_band_settings[band]; - /* Convert user settings to format required by coef generator functions */ - unsigned long cutoff = 0xffffffff / NATIVE_FREQUENCY * setting->cutoff; - unsigned long q = setting->q; - int gain = setting->gain; + cutoff = 0xffffffff / NATIVE_FREQUENCY * cutoff; if (q == 0) q = 1; diff --git a/lib/rbcodec/dsp/dsp.h b/lib/rbcodec/dsp/dsp.h index 0da6274..a99df17 100644 --- a/lib/rbcodec/dsp/dsp.h +++ b/lib/rbcodec/dsp/dsp.h @@ -111,7 +111,7 @@ void dsp_set_crossfeed_cross_params(long lf_gain, long hf_gain, long cutoff); void dsp_set_eq(bool enable); void dsp_set_eq_precut(int precut); -void dsp_set_eq_coefs(int band); +void dsp_set_eq_coefs(int band, int cutoff, int q, int gain); void dsp_dither_enable(bool enable); void dsp_timestretch_enable(bool enable); bool dsp_timestretch_available(void); |