From d29a11b7a8f4ce230e9385a44f352a559bde753f Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Tue, 8 May 2012 16:34:26 +0200 Subject: Rename HAVE_PITCHSCREEN to HAVE_PITCHCONTROL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also move the definition to config.h Change-Id: I36bb5020c5e06b2344292bc05e8c13ccc7a6a1ff Reviewed-on: http://gerrit.rockbox.org/234 Reviewed-by: Nils Wallménius --- lib/rbcodec/dsp/dsp_misc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/rbcodec/dsp/dsp_misc.c') 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) /** Pitch Settings **/ -#ifdef HAVE_PITCHSCREEN +#ifdef HAVE_PITCHCONTROL static int32_t pitch_ratio = PITCH_SPEED_100; static void dsp_pitch_update(struct dsp_config *dsp) @@ -183,7 +183,7 @@ void sound_set_pitch(int32_t percent) struct sample_io_data *data = (void *)dsp; dsp_configure(dsp, DSP_SWITCH_FREQUENCY, data->format.codec_frequency); } -#endif /* HAVE_PITCHSCREEN */ +#endif /* HAVE_PITCHCONTROL */ /* This is a null-processing stage that monitors as an enabled stage but never * becomes active in processing samples. It only hooks messages. */ @@ -208,7 +208,7 @@ static intptr_t misc_handler_configure(struct dsp_proc_entry *this, break; case DSP_RESET: -#ifdef HAVE_PITCHSCREEN +#ifdef HAVE_PITCHCONTROL dsp_pitch_update(dsp); #endif value = (intptr_t)NULL; /* Default gains */ @@ -216,7 +216,7 @@ static intptr_t misc_handler_configure(struct dsp_proc_entry *this, dsp_replaygain_set_gains((void *)value); break; -#ifdef HAVE_PITCHSCREEN +#ifdef HAVE_PITCHCONTROL case DSP_SET_FREQUENCY: dsp_pitch_update(dsp); break; -- cgit v1.2.3