summaryrefslogtreecommitdiff
path: root/lib/rbcodec/dsp/dsp_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/dsp/dsp_misc.c')
-rw-r--r--lib/rbcodec/dsp/dsp_misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rbcodec/dsp/dsp_misc.c b/lib/rbcodec/dsp/dsp_misc.c
index c87a1d528e..1083215c17 100644
--- a/lib/rbcodec/dsp/dsp_misc.c
+++ b/lib/rbcodec/dsp/dsp_misc.c
@@ -158,7 +158,7 @@ void dsp_replaygain_set_settings(const struct replaygain_settings *settings)
158 158
159/** Pitch Settings **/ 159/** Pitch Settings **/
160 160
161#ifdef HAVE_PITCHSCREEN 161#ifdef HAVE_PITCHCONTROL
162static int32_t pitch_ratio = PITCH_SPEED_100; 162static int32_t pitch_ratio = PITCH_SPEED_100;
163 163
164static void dsp_pitch_update(struct dsp_config *dsp) 164static void dsp_pitch_update(struct dsp_config *dsp)
@@ -183,7 +183,7 @@ void sound_set_pitch(int32_t percent)
183 struct sample_io_data *data = (void *)dsp; 183 struct sample_io_data *data = (void *)dsp;
184 dsp_configure(dsp, DSP_SWITCH_FREQUENCY, data->format.codec_frequency); 184 dsp_configure(dsp, DSP_SWITCH_FREQUENCY, data->format.codec_frequency);
185} 185}
186#endif /* HAVE_PITCHSCREEN */ 186#endif /* HAVE_PITCHCONTROL */
187 187
188/* This is a null-processing stage that monitors as an enabled stage but never 188/* This is a null-processing stage that monitors as an enabled stage but never
189 * becomes active in processing samples. It only hooks messages. */ 189 * becomes active in processing samples. It only hooks messages. */
@@ -208,7 +208,7 @@ static intptr_t misc_handler_configure(struct dsp_proc_entry *this,
208 break; 208 break;
209 209
210 case DSP_RESET: 210 case DSP_RESET:
211#ifdef HAVE_PITCHSCREEN 211#ifdef HAVE_PITCHCONTROL
212 dsp_pitch_update(dsp); 212 dsp_pitch_update(dsp);
213#endif 213#endif
214 value = (intptr_t)NULL; /* Default gains */ 214 value = (intptr_t)NULL; /* Default gains */
@@ -216,7 +216,7 @@ static intptr_t misc_handler_configure(struct dsp_proc_entry *this,
216 dsp_replaygain_set_gains((void *)value); 216 dsp_replaygain_set_gains((void *)value);
217 break; 217 break;
218 218
219#ifdef HAVE_PITCHSCREEN 219#ifdef HAVE_PITCHCONTROL
220 case DSP_SET_FREQUENCY: 220 case DSP_SET_FREQUENCY:
221 dsp_pitch_update(dsp); 221 dsp_pitch_update(dsp);
222 break; 222 break;