summaryrefslogtreecommitdiff
path: root/apps/codecs/wavpack.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/wavpack.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/wavpack.c')
-rw-r--r--apps/codecs/wavpack.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/codecs/wavpack.c b/apps/codecs/wavpack.c
index 21c194773b..ff890ba805 100644
--- a/apps/codecs/wavpack.c
+++ b/apps/codecs/wavpack.c
@@ -40,6 +40,8 @@ static long read_callback (void *buffer, long bytes)
40extern char iramcopy[]; 40extern char iramcopy[];
41extern char iramstart[]; 41extern char iramstart[];
42extern char iramend[]; 42extern char iramend[];
43extern char iedata[];
44extern char iend[];
43#endif 45#endif
44 46
45/* this is the codec entry point */ 47/* this is the codec entry point */
@@ -56,6 +58,7 @@ enum codec_status codec_start(struct codec_api* api)
56 58
57#ifdef USE_IRAM 59#ifdef USE_IRAM
58 ci->memcpy(iramstart, iramcopy, iramend-iramstart); 60 ci->memcpy(iramstart, iramcopy, iramend-iramstart);
61 ci->memset(iedata, 0, iend - iedata);
59#endif 62#endif
60 63
61 ci->configure(CODEC_SET_FILEBUF_WATERMARK, (int *)(1024*512)); 64 ci->configure(CODEC_SET_FILEBUF_WATERMARK, (int *)(1024*512));