summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rbcodec/SOURCES2
-rw-r--r--lib/rbcodec/dsp/dsp_misc.c8
-rw-r--r--lib/rbcodec/dsp/dsp_misc.h4
-rw-r--r--lib/rbcodec/dsp/dsp_proc_database.h2
-rw-r--r--lib/rbcodec/dsp/dsp_proc_settings.h2
-rw-r--r--lib/rbcodec/rbcodecconfig-example.h2
6 files changed, 10 insertions, 10 deletions
diff --git a/lib/rbcodec/SOURCES b/lib/rbcodec/SOURCES
index c293f3c..2762636 100644
--- a/lib/rbcodec/SOURCES
+++ b/lib/rbcodec/SOURCES
@@ -14,7 +14,7 @@ dsp/dsp_sample_output.c
dsp/eq.c
dsp/lin_resample.c
dsp/pga.c
-# ifdef HAVE_PITCHSCREEN
+# ifdef HAVE_PITCHCONTROL
dsp/tdspeed.c
# endif
# ifdef HAVE_SW_TONE_CONTROLS
diff --git a/lib/rbcodec/dsp/dsp_misc.c b/lib/rbcodec/dsp/dsp_misc.c
index c87a1d5..1083215 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;
diff --git a/lib/rbcodec/dsp/dsp_misc.h b/lib/rbcodec/dsp/dsp_misc.h
index 1c84fd5..d658374 100644
--- a/lib/rbcodec/dsp/dsp_misc.h
+++ b/lib/rbcodec/dsp/dsp_misc.h
@@ -54,10 +54,10 @@ struct dsp_replay_gains
void dsp_replaygain_set_settings(const struct replaygain_settings *settings);
-#ifdef HAVE_PITCHSCREEN
+#ifdef HAVE_PITCHCONTROL
void sound_set_pitch(int32_t ratio);
int32_t sound_get_pitch(void);
-#endif /* HAVE_PITCHSCREEN */
+#endif /* HAVE_PITCHCONTROL */
/* Callback for firmware layers to interface */
int dsp_callback(int msg, intptr_t param);
diff --git a/lib/rbcodec/dsp/dsp_proc_database.h b/lib/rbcodec/dsp/dsp_proc_database.h
index 55f10e6..c4c93ef 100644
--- a/lib/rbcodec/dsp/dsp_proc_database.h
+++ b/lib/rbcodec/dsp/dsp_proc_database.h
@@ -37,7 +37,7 @@
DSP_PROC_DB_START
DSP_PROC_DB_ITEM(MISC_HANDLER) /* misc stuff (null stage) */
DSP_PROC_DB_ITEM(PGA) /* pre-gain amp */
-#ifdef HAVE_PITCHSCREEN
+#ifdef HAVE_PITCHCONTROL
DSP_PROC_DB_ITEM(TIMESTRETCH) /* time-stretching */
#endif
DSP_PROC_DB_ITEM(RESAMPLE) /* resampler providing NATIVE_FREQUENCY */
diff --git a/lib/rbcodec/dsp/dsp_proc_settings.h b/lib/rbcodec/dsp/dsp_proc_settings.h
index 10bc671..26f603b 100644
--- a/lib/rbcodec/dsp/dsp_proc_settings.h
+++ b/lib/rbcodec/dsp/dsp_proc_settings.h
@@ -28,7 +28,7 @@
#include "dsp_misc.h"
#include "eq.h"
#include "pga.h"
-#ifdef HAVE_PITCHSCREEN
+#ifdef HAVE_PITCHCONTROL
#include "tdspeed.h"
#endif
#ifdef HAVE_SW_TONE_CONTROLS
diff --git a/lib/rbcodec/rbcodecconfig-example.h b/lib/rbcodec/rbcodecconfig-example.h
index ad0f296..2e14f53 100644
--- a/lib/rbcodec/rbcodecconfig-example.h
+++ b/lib/rbcodec/rbcodecconfig-example.h
@@ -1,7 +1,7 @@
#ifndef RBCODECCONFIG_H_INCLUDED
#define RBCODECCONFIG_H_INCLUDED
-#define HAVE_PITCHSCREEN
+#define HAVE_PITCHCONTROL
//#define HAVE_SW_VOLUME_CONTROL
#define HAVE_SW_TONE_CONTROLS
#define HAVE_ALBUMART