summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2013-05-27 03:40:02 -0400
committerMichael Sevakis <jethead71@rockbox.org>2013-05-27 03:40:02 -0400
commit46688a60db58a54e5456c8e4777c92c66c9e45bb (patch)
treee797b09d58bfb10360f633432835c03dda45a4e6
parentb5a6517e9d8f319d7a965fd5c5751b925efeb064 (diff)
downloadrockbox-46688a6.tar.gz
rockbox-46688a6.zip
Missed removing a couple unwanted includes in previous commit.
Get those too. Change-Id: Id2a39afe7a61d6ec0cea38633b94fe1b7122204f
-rw-r--r--lib/rbcodec/dsp/compressor.c2
-rw-r--r--lib/rbcodec/dsp/dsp_misc.c1
-rw-r--r--lib/rbcodec/platform.h7
3 files changed, 7 insertions, 3 deletions
diff --git a/lib/rbcodec/dsp/compressor.c b/lib/rbcodec/dsp/compressor.c
index 630672a343..fc73f761a7 100644
--- a/lib/rbcodec/dsp/compressor.c
+++ b/lib/rbcodec/dsp/compressor.c
@@ -19,8 +19,6 @@
*
****************************************************************************/
#include "rbcodecconfig.h"
-#include <stdbool.h>
-#include <sys/types.h>
#include "fixedpoint.h"
#include "fracmul.h"
#include <string.h>
diff --git a/lib/rbcodec/dsp/dsp_misc.c b/lib/rbcodec/dsp/dsp_misc.c
index 03c6a70052..cc74a790ea 100644
--- a/lib/rbcodec/dsp/dsp_misc.c
+++ b/lib/rbcodec/dsp/dsp_misc.c
@@ -22,7 +22,6 @@
*
****************************************************************************/
#include "rbcodecconfig.h"
-#include "sound.h"
#include "fixedpoint.h"
#include "replaygain.h"
#include "dsp_proc_entry.h"
diff --git a/lib/rbcodec/platform.h b/lib/rbcodec/platform.h
index be2fd059d9..7a0c87fa9c 100644
--- a/lib/rbcodec/platform.h
+++ b/lib/rbcodec/platform.h
@@ -126,5 +126,12 @@ static inline int32_t clip_sample_16(int32_t sample)
#endif
*/
+#ifdef HAVE_PITCHCONTROL
+/* precision of the pitch and speed variables */
+/* One zero per decimal (100 means two decimal places */
+#define PITCH_SPEED_PRECISION 100L
+#define PITCH_SPEED_100 (100L * PITCH_SPEED_PRECISION) /* 100% speed */
+#endif /* HAVE_PITCHCONTROL */
+
int find_first_set_bit(uint32_t value);
#endif /* PLATFORM_H_INCLUDED */