diff options
author | Thom Johansen <thomj@rockbox.org> | 2005-06-11 14:44:35 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2005-06-11 14:44:35 +0000 |
commit | c0f9ad61fbf4ea4e774b42a95a8f567a1fb1db1b (patch) | |
tree | e781692e5fe0be8f9e0a89f369212afca5fbceb4 | |
parent | a9d9ef50bd1bf795d610882939bf7ccbe471bc5a (diff) | |
download | rockbox-c0f9ad61fbf4ea4e774b42a95a8f567a1fb1db1b.tar.gz rockbox-c0f9ad61fbf4ea4e774b42a95a8f567a1fb1db1b.zip |
IRAM support for a52towav.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6675 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/a52towav.c | 11 |
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 | |||
149 | 149 | ||
150 | #define BUFFER_SIZE 4096 | 150 | #define BUFFER_SIZE 4096 |
151 | 151 | ||
152 | #ifdef USE_IRAM | ||
153 | extern char iramcopy[]; | ||
154 | extern char iramstart[]; | ||
155 | extern char iramend[]; | ||
156 | #endif | ||
157 | |||
152 | /* this is the plugin entry point */ | 158 | /* this is the plugin entry point */ |
153 | enum plugin_status plugin_start(struct plugin_api* api, void* file) | 159 | enum plugin_status plugin_start(struct plugin_api* api, void* file) |
154 | { | 160 | { |
@@ -159,7 +165,10 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) | |||
159 | TEST_PLUGIN_API(api); | 165 | TEST_PLUGIN_API(api); |
160 | rb = api; | 166 | rb = api; |
161 | 167 | ||
162 | 168 | #ifdef USE_IRAM | |
169 | rb->memcpy(iramstart, iramcopy, iramend-iramstart); | ||
170 | #endif | ||
171 | |||
163 | /* This function sets up the buffers and reads the file into RAM */ | 172 | /* This function sets up the buffers and reads the file into RAM */ |
164 | 173 | ||
165 | if (local_init(file,"/ac3test.wav",&file_info,api)) { | 174 | if (local_init(file,"/ac3test.wav",&file_info,api)) { |