summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2005-09-21 13:09:10 +0000
committerThom Johansen <thomj@rockbox.org>2005-09-21 13:09:10 +0000
commitf60e6200f64f0fcf9d82027eaf40ddad0f1e2f17 (patch)
tree2e0e84fa01730805d6f252054942e6c25a06e3ab
parent5f78b9a53065caf12955f0c3271b20e42ba30fc1 (diff)
downloadrockbox-f60e6200f64f0fcf9d82027eaf40ddad0f1e2f17.tar.gz
rockbox-f60e6200f64f0fcf9d82027eaf40ddad0f1e2f17.zip
DSP_* constants moved from playback.h to dsp.h.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7529 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/codecs/lib/codeclib.c2
-rw-r--r--apps/codecs/mpc.c2
-rw-r--r--apps/dsp.h19
-rw-r--r--apps/playback.h19
4 files changed, 21 insertions, 21 deletions
diff --git a/apps/codecs/lib/codeclib.c b/apps/codecs/lib/codeclib.c
index ac6e36245f..b2f5c23f77 100644
--- a/apps/codecs/lib/codeclib.c
+++ b/apps/codecs/lib/codeclib.c
@@ -20,7 +20,7 @@
/* "helper functions" common to all codecs */
#include "plugin.h"
-#include "playback.h"
+#include "dsp.h"
#include "codeclib.h"
#include "xxx2wav.h"
#include "id3.h"
diff --git a/apps/codecs/mpc.c b/apps/codecs/mpc.c
index abcb30b653..d37ac46a4f 100644
--- a/apps/codecs/mpc.c
+++ b/apps/codecs/mpc.c
@@ -18,7 +18,7 @@
****************************************************************************/
#include "codec.h"
-#include "playback.h"
+#include "dsp.h"
#include "lib/codeclib.h"
#include <codecs/libmusepack/musepack.h>
diff --git a/apps/dsp.h b/apps/dsp.h
index 856c08f689..fdd9a191cb 100644
--- a/apps/dsp.h
+++ b/apps/dsp.h
@@ -28,6 +28,25 @@
#define STEREO_NONINTERLEAVED 1
#define STEREO_MONO 2
+enum {
+ CODEC_SET_FILEBUF_WATERMARK = 1,
+ CODEC_SET_FILEBUF_CHUNKSIZE,
+ CODEC_SET_FILEBUF_LIMIT,
+ CODEC_DSP_ENABLE,
+ DSP_SET_FREQUENCY,
+ DSP_SWITCH_FREQUENCY,
+ DSP_SET_CLIP_MIN,
+ DSP_SET_CLIP_MAX,
+ DSP_SET_SAMPLE_DEPTH,
+ DSP_SET_STEREO_MODE,
+ DSP_RESET,
+ DSP_DITHER,
+ DSP_SET_TRACK_GAIN,
+ DSP_SET_ALBUM_GAIN,
+ DSP_SET_TRACK_PEAK,
+ DSP_SET_ALBUM_PEAK
+};
+
long dsp_process(char *dest, char *src[], long size);
long dsp_input_size(long size);
long dsp_output_size(long size);
diff --git a/apps/playback.h b/apps/playback.h
index a5b64ba0e3..0fb5d5c319 100644
--- a/apps/playback.h
+++ b/apps/playback.h
@@ -27,25 +27,6 @@
#include "id3.h"
#include "mp3data.h"
-enum {
- CODEC_SET_FILEBUF_WATERMARK = 1,
- CODEC_SET_FILEBUF_CHUNKSIZE,
- CODEC_SET_FILEBUF_LIMIT,
- CODEC_DSP_ENABLE,
- DSP_SET_FREQUENCY,
- DSP_SWITCH_FREQUENCY,
- DSP_SET_CLIP_MIN,
- DSP_SET_CLIP_MAX,
- DSP_SET_SAMPLE_DEPTH,
- DSP_SET_STEREO_MODE,
- DSP_RESET,
- DSP_DITHER,
- DSP_SET_TRACK_GAIN,
- DSP_SET_ALBUM_GAIN,
- DSP_SET_TRACK_PEAK,
- DSP_SET_ALBUM_PEAK
-};
-
/* Not yet implemented. */
#define CODEC_SET_AUDIOBUF_WATERMARK 4