summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--apps/codecs.h4
-rw-r--r--apps/codecs/mpa.c2
-rw-r--r--apps/codecs/spc.c3
-rw-r--r--apps/codecs/vorbis.c2
4 files changed, 4 insertions, 7 deletions
diff --git a/apps/codecs.h b/apps/codecs.h
index 5d3c703..3d7ead1 100644
--- a/apps/codecs.h
+++ b/apps/codecs.h
@@ -90,12 +90,12 @@
#define CODEC_ENC_MAGIC 0x52454E43 /* RENC */
/* increase this every time the api struct changes */
-#define CODEC_API_VERSION 13
+#define CODEC_API_VERSION 14
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
new function which are "waiting" at the end of the function table) */
-#define CODEC_MIN_API_VERSION 13
+#define CODEC_MIN_API_VERSION 14
/* codec return codes */
enum codec_status {
diff --git a/apps/codecs/mpa.c b/apps/codecs/mpa.c
index 7bc546b..6d98677 100644
--- a/apps/codecs/mpa.c
+++ b/apps/codecs/mpa.c
@@ -79,8 +79,6 @@ enum codec_status codec_main(void)
/* Create a decoder instance */
ci->configure(DSP_SET_SAMPLE_DEPTH, MAD_F_FRACBITS);
- ci->configure(DSP_SET_CLIP_MIN, -MAD_F_ONE);
- ci->configure(DSP_SET_CLIP_MAX, MAD_F_ONE - 1);
ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, 1024*16);
next_track:
diff --git a/apps/codecs/spc.c b/apps/codecs/spc.c
index 8d621dd..61fd9de 100644
--- a/apps/codecs/spc.c
+++ b/apps/codecs/spc.c
@@ -712,7 +712,8 @@ static int LoadID666(unsigned char *buf) {
/**************** Codec ****************/
-static int32_t samples[WAV_CHUNK_SIZE*2] IBSS_ATTR;
+static int32_t samples[WAV_CHUNK_SIZE*2]
+ __attribute__ ((aligned (16))) IBSS_ATTR;
static struct Spc_Emu spc_emu IDATA_ATTR;
diff --git a/apps/codecs/vorbis.c b/apps/codecs/vorbis.c
index 5f08fb5..7e7ef36 100644
--- a/apps/codecs/vorbis.c
+++ b/apps/codecs/vorbis.c
@@ -113,8 +113,6 @@ enum codec_status codec_main(void)
ogg_int64_t vf_pcmlengths[2];
ci->configure(DSP_SET_SAMPLE_DEPTH, 24);
- ci->configure(DSP_SET_CLIP_MAX, (1 << 24) - 1);
- ci->configure(DSP_SET_CLIP_MIN, -((1 << 24) - 1));
/* Note: These are sane defaults for these values. Perhaps
* they should be set differently based on quality setting
*/