diff options
author | Nils Wallménius <nils@rockbox.org> | 2012-05-08 16:34:26 +0200 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2012-05-09 14:32:38 +0200 |
commit | d29a11b7a8f4ce230e9385a44f352a559bde753f (patch) | |
tree | 6fb4dc1699be894e5495dd862941606442239bfc /lib/rbcodec/dsp/dsp_misc.c | |
parent | d26a35d10b9e2f808b0e4880d5b5d1a2963258e9 (diff) | |
download | rockbox-d29a11b7a8f4ce230e9385a44f352a559bde753f.tar.gz rockbox-d29a11b7a8f4ce230e9385a44f352a559bde753f.zip |
Rename HAVE_PITCHSCREEN to HAVE_PITCHCONTROL
Also move the definition to config.h
Change-Id: I36bb5020c5e06b2344292bc05e8c13ccc7a6a1ff
Reviewed-on: http://gerrit.rockbox.org/234
Reviewed-by: Nils Wallménius <nils@rockbox.org>
Diffstat (limited to 'lib/rbcodec/dsp/dsp_misc.c')
-rw-r--r-- | lib/rbcodec/dsp/dsp_misc.c | 8 |
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 |
162 | static int32_t pitch_ratio = PITCH_SPEED_100; | 162 | static int32_t pitch_ratio = PITCH_SPEED_100; |
163 | 163 | ||
164 | static void dsp_pitch_update(struct dsp_config *dsp) | 164 | static 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; |