From 8b8593f37aa43d0b34f52719a29645abd6d302d3 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Tue, 17 May 2005 13:02:13 +0000 Subject: Facilitate IRAM usage for wv2wav. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6482 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/wv2wav.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'apps/plugins/wv2wav.c') diff --git a/apps/plugins/wv2wav.c b/apps/plugins/wv2wav.c index 1a3cd83720..c0bc05cf12 100644 --- a/apps/plugins/wv2wav.c +++ b/apps/plugins/wv2wav.c @@ -135,6 +135,12 @@ long Read(void* buffer, long size) return (file_info.curpos - oldpos); } +#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) { @@ -144,7 +150,11 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) /* generic plugin initialisation */ TEST_PLUGIN_API(api); 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,"/wvtest.wav",&file_info,api)) { -- cgit v1.2.3