summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2005-06-11 14:44:35 +0000
committerThom Johansen <thomj@rockbox.org>2005-06-11 14:44:35 +0000
commitc0f9ad61fbf4ea4e774b42a95a8f567a1fb1db1b (patch)
treee781692e5fe0be8f9e0a89f369212afca5fbceb4 /apps/plugins
parenta9d9ef50bd1bf795d610882939bf7ccbe471bc5a (diff)
IRAM support for a52towav.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6675 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/a52towav.c11
1 files changed, 10 insertions, 1 deletions
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)) {