From c0f9ad61fbf4ea4e774b42a95a8f567a1fb1db1b Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Sat, 11 Jun 2005 14:44:35 +0000 Subject: IRAM support for a52towav. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6675 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/a52towav.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/plugins/a52towav.c b/apps/plugins/a52towav.c index 32353d823f..f6769abd2b 100644 --- a/apps/plugins/a52towav.c +++ b/apps/plugins/a52towav.c @@ -149,6 +149,12 @@ void a52_decode_data (file_info_struct* file_info, uint8_t * start, uint8_t * en #define BUFFER_SIZE 4096 +#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) { @@ -159,7 +165,10 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) 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,"/ac3test.wav",&file_info,api)) { -- cgit v1.2.3