summaryrefslogtreecommitdiff
path: root/apps/codecs/alac.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-01-08 22:50:14 +0000
committerJens Arnold <amiconn@rockbox.org>2006-01-08 22:50:14 +0000
commit07c4254135aecc6ae0964d6d6413a40251e8f6a8 (patch)
treedac473efeb9f49cb6fefeb43c053f2dd0dc1b6cc /apps/codecs/alac.c
parente8b1787296dae2a69893bd0fe97b2361fb6180ba (diff)
downloadrockbox-07c4254135aecc6ae0964d6d6413a40251e8f6a8.tar.gz
rockbox-07c4254135aecc6ae0964d6d6413a40251e8f6a8.zip
Don't include the .bss and .ibss sections in the binary image for codecs and plugins. Saves quite some disk space (and buffer space in case of codec changes during playback).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8308 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/alac.c')
-rw-r--r--apps/codecs/alac.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/codecs/alac.c b/apps/codecs/alac.c
index 58ab111755..30c1ada555 100644
--- a/apps/codecs/alac.c
+++ b/apps/codecs/alac.c
@@ -21,10 +21,12 @@
21#include "libm4a/m4a.h" 21#include "libm4a/m4a.h"
22#include "libalac/decomp.h" 22#include "libalac/decomp.h"
23 23
24#ifndef SIMULATOR 24#ifdef USE_IRAM
25extern char iramcopy[]; 25extern char iramcopy[];
26extern char iramstart[]; 26extern char iramstart[];
27extern char iramend[]; 27extern char iramend[];
28extern char iedata[];
29extern char iend[];
28#endif 30#endif
29 31
30int32_t outputbuffer[ALAC_MAX_CHANNELS][ALAC_BLOCKSIZE] IBSS_ATTR; 32int32_t outputbuffer[ALAC_MAX_CHANNELS][ALAC_BLOCKSIZE] IBSS_ATTR;
@@ -53,8 +55,9 @@ enum codec_status codec_start(struct codec_api* api)
53 rb = api; 55 rb = api;
54 ci = (struct codec_api*)api; 56 ci = (struct codec_api*)api;
55 57
56#ifndef SIMULATOR 58#ifdef USE_IRAM
57 rb->memcpy(iramstart, iramcopy, iramend-iramstart); 59 rb->memcpy(iramstart, iramcopy, iramend-iramstart);
60 rb->memset(iedata, 0, iend - iedata);
58#endif 61#endif
59 62
60 ci->configure(CODEC_SET_FILEBUF_WATERMARK, (int *)(1024*512)); 63 ci->configure(CODEC_SET_FILEBUF_WATERMARK, (int *)(1024*512));