diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbcodec/dsp/dsp_misc.c | 12 | ||||
-rw-r--r-- | lib/rbcodec/dsp/dsp_misc.h | 1 |
2 files changed, 6 insertions, 7 deletions
diff --git a/lib/rbcodec/dsp/dsp_misc.c b/lib/rbcodec/dsp/dsp_misc.c index c871e5bd14..c87a1d528e 100644 --- a/lib/rbcodec/dsp/dsp_misc.c +++ b/lib/rbcodec/dsp/dsp_misc.c | |||
@@ -138,12 +138,7 @@ static void dsp_replaygain_update( | |||
138 | pga_enable_gain(PGA_REPLAYGAIN, gain != PGA_UNITY); | 138 | pga_enable_gain(PGA_REPLAYGAIN, gain != PGA_UNITY); |
139 | } | 139 | } |
140 | 140 | ||
141 | void dsp_replaygain_set_settings(const struct replaygain_settings *settings) | 141 | static void dsp_replaygain_set_gains(const struct dsp_replay_gains *gains) |
142 | { | ||
143 | dsp_replaygain_update(settings, ¤t_gains); | ||
144 | } | ||
145 | |||
146 | void dsp_replaygain_set_gains(const struct dsp_replay_gains *gains) | ||
147 | { | 142 | { |
148 | if (gains == NULL) | 143 | if (gains == NULL) |
149 | { | 144 | { |
@@ -155,6 +150,11 @@ void dsp_replaygain_set_gains(const struct dsp_replay_gains *gains) | |||
155 | dsp_replaygain_update(¤t_settings, gains); | 150 | dsp_replaygain_update(¤t_settings, gains); |
156 | } | 151 | } |
157 | 152 | ||
153 | void dsp_replaygain_set_settings(const struct replaygain_settings *settings) | ||
154 | { | ||
155 | dsp_replaygain_update(settings, ¤t_gains); | ||
156 | } | ||
157 | |||
158 | 158 | ||
159 | /** Pitch Settings **/ | 159 | /** Pitch Settings **/ |
160 | 160 | ||
diff --git a/lib/rbcodec/dsp/dsp_misc.h b/lib/rbcodec/dsp/dsp_misc.h index e0035457f5..1c84fd5a11 100644 --- a/lib/rbcodec/dsp/dsp_misc.h +++ b/lib/rbcodec/dsp/dsp_misc.h | |||
@@ -53,7 +53,6 @@ struct dsp_replay_gains | |||
53 | }; | 53 | }; |
54 | 54 | ||
55 | void dsp_replaygain_set_settings(const struct replaygain_settings *settings); | 55 | void dsp_replaygain_set_settings(const struct replaygain_settings *settings); |
56 | void dsp_replaygain_set_gains(const struct dsp_replay_gains *gains); | ||
57 | 56 | ||
58 | #ifdef HAVE_PITCHSCREEN | 57 | #ifdef HAVE_PITCHSCREEN |
59 | void sound_set_pitch(int32_t ratio); | 58 | void sound_set_pitch(int32_t ratio); |