summaryrefslogtreecommitdiff
path: root/apps/plugins/vorbis2wav.c
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2005-05-23 09:39:56 +0000
committerThom Johansen <thomj@rockbox.org>2005-05-23 09:39:56 +0000
commitd0827aba8da4421d9344a4c961a6222e01fad922 (patch)
treeb7d02d1f1050cc0a309b60678b43ad561c67da60 /apps/plugins/vorbis2wav.c
parent103fbffc80804ac09e61d2c1ee69cf0cdc1eecd6 (diff)
Added support for IRAM.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6505 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/vorbis2wav.c')
-rw-r--r--apps/plugins/vorbis2wav.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/plugins/vorbis2wav.c b/apps/plugins/vorbis2wav.c
index e61bc617f6..93ec4cfe69 100644
--- a/apps/plugins/vorbis2wav.c
+++ b/apps/plugins/vorbis2wav.c
@@ -80,6 +80,11 @@ long tell_handler(void *datasource) {
return p->curpos;
}
+#ifdef USE_IRAM
+extern char iramcopy[];
+extern char iramstart[];
+extern char iramend[];
+#endif
/* this is the plugin entry point */
enum plugin_status plugin_start(struct plugin_api* api, void* file)
@@ -106,7 +111,10 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file)
otherwise you will get lovely "I04: IllInstr" errors... :-) */
rb = api;
-
+ #ifdef USE_IRAM
+ rb->memcpy(iramstart, iramcopy, iramend-iramstart);
+ #endif
+
/* This function sets up the buffers and reads the file into RAM */
if (local_init(file,"/vorbistest.wav",&file_info,api)) {