summaryrefslogtreecommitdiff
path: root/lib/rbcodec
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec')
-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 c293f3c028..2762636b43 100644
--- a/lib/rbcodec/SOURCES
+++ b/lib/rbcodec/SOURCES
@@ -14,7 +14,7 @@ dsp/dsp_sample_output.c
14dsp/eq.c 14dsp/eq.c
15dsp/lin_resample.c 15dsp/lin_resample.c
16dsp/pga.c 16dsp/pga.c
17# ifdef HAVE_PITCHSCREEN 17# ifdef HAVE_PITCHCONTROL
18dsp/tdspeed.c 18dsp/tdspeed.c
19# endif 19# endif
20# ifdef HAVE_SW_TONE_CONTROLS 20# ifdef HAVE_SW_TONE_CONTROLS
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;
diff --git a/lib/rbcodec/dsp/dsp_misc.h b/lib/rbcodec/dsp/dsp_misc.h
index 1c84fd5a11..d658374eaf 100644
--- a/lib/rbcodec/dsp/dsp_misc.h
+++ b/lib/rbcodec/dsp/dsp_misc.h
@@ -54,10 +54,10 @@ struct dsp_replay_gains
54 54
55void dsp_replaygain_set_settings(const struct replaygain_settings *settings); 55void dsp_replaygain_set_settings(const struct replaygain_settings *settings);
56 56
57#ifdef HAVE_PITCHSCREEN 57#ifdef HAVE_PITCHCONTROL
58void sound_set_pitch(int32_t ratio); 58void sound_set_pitch(int32_t ratio);
59int32_t sound_get_pitch(void); 59int32_t sound_get_pitch(void);
60#endif /* HAVE_PITCHSCREEN */ 60#endif /* HAVE_PITCHCONTROL */
61 61
62/* Callback for firmware layers to interface */ 62/* Callback for firmware layers to interface */
63int dsp_callback(int msg, intptr_t param); 63int 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 55f10e684b..c4c93ef2d9 100644
--- a/lib/rbcodec/dsp/dsp_proc_database.h
+++ b/lib/rbcodec/dsp/dsp_proc_database.h
@@ -37,7 +37,7 @@
37DSP_PROC_DB_START 37DSP_PROC_DB_START
38 DSP_PROC_DB_ITEM(MISC_HANDLER) /* misc stuff (null stage) */ 38 DSP_PROC_DB_ITEM(MISC_HANDLER) /* misc stuff (null stage) */
39 DSP_PROC_DB_ITEM(PGA) /* pre-gain amp */ 39 DSP_PROC_DB_ITEM(PGA) /* pre-gain amp */
40#ifdef HAVE_PITCHSCREEN 40#ifdef HAVE_PITCHCONTROL
41 DSP_PROC_DB_ITEM(TIMESTRETCH) /* time-stretching */ 41 DSP_PROC_DB_ITEM(TIMESTRETCH) /* time-stretching */
42#endif 42#endif
43 DSP_PROC_DB_ITEM(RESAMPLE) /* resampler providing NATIVE_FREQUENCY */ 43 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 10bc671b72..26f603b8b1 100644
--- a/lib/rbcodec/dsp/dsp_proc_settings.h
+++ b/lib/rbcodec/dsp/dsp_proc_settings.h
@@ -28,7 +28,7 @@
28#include "dsp_misc.h" 28#include "dsp_misc.h"
29#include "eq.h" 29#include "eq.h"
30#include "pga.h" 30#include "pga.h"
31#ifdef HAVE_PITCHSCREEN 31#ifdef HAVE_PITCHCONTROL
32#include "tdspeed.h" 32#include "tdspeed.h"
33#endif 33#endif
34#ifdef HAVE_SW_TONE_CONTROLS 34#ifdef HAVE_SW_TONE_CONTROLS
diff --git a/lib/rbcodec/rbcodecconfig-example.h b/lib/rbcodec/rbcodecconfig-example.h
index ad0f296a23..2e14f53202 100644
--- a/lib/rbcodec/rbcodecconfig-example.h
+++ b/lib/rbcodec/rbcodecconfig-example.h
@@ -1,7 +1,7 @@
1#ifndef RBCODECCONFIG_H_INCLUDED 1#ifndef RBCODECCONFIG_H_INCLUDED
2#define RBCODECCONFIG_H_INCLUDED 2#define RBCODECCONFIG_H_INCLUDED
3 3
4#define HAVE_PITCHSCREEN 4#define HAVE_PITCHCONTROL
5//#define HAVE_SW_VOLUME_CONTROL 5//#define HAVE_SW_VOLUME_CONTROL
6#define HAVE_SW_TONE_CONTROLS 6#define HAVE_SW_TONE_CONTROLS
7#define HAVE_ALBUMART 7#define HAVE_ALBUMART