diff options
author | Thom Johansen <thomj@rockbox.org> | 2005-05-17 13:02:13 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2005-05-17 13:02:13 +0000 |
commit | 8b8593f37aa43d0b34f52719a29645abd6d302d3 (patch) | |
tree | f42416bfb70b3de64bd5256dec949f79561d6cae /apps/plugins/wv2wav.c | |
parent | 6705a8834725a675a11494aa6966c145646e655c (diff) | |
download | rockbox-8b8593f37aa43d0b34f52719a29645abd6d302d3.tar.gz rockbox-8b8593f37aa43d0b34f52719a29645abd6d302d3.zip |
Facilitate IRAM usage for wv2wav.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6482 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/wv2wav.c')
-rw-r--r-- | apps/plugins/wv2wav.c | 12 |
1 files changed, 11 insertions, 1 deletions
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) | |||
135 | return (file_info.curpos - oldpos); | 135 | return (file_info.curpos - oldpos); |
136 | } | 136 | } |
137 | 137 | ||
138 | #ifdef USE_IRAM | ||
139 | extern char iramcopy[]; | ||
140 | extern char iramstart[]; | ||
141 | extern char iramend[]; | ||
142 | #endif | ||
143 | |||
138 | /* this is the plugin entry point */ | 144 | /* this is the plugin entry point */ |
139 | enum plugin_status plugin_start(struct plugin_api* api, void* file) | 145 | enum plugin_status plugin_start(struct plugin_api* api, void* file) |
140 | { | 146 | { |
@@ -144,7 +150,11 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) | |||
144 | /* generic plugin initialisation */ | 150 | /* generic plugin initialisation */ |
145 | TEST_PLUGIN_API(api); | 151 | TEST_PLUGIN_API(api); |
146 | rb = api; | 152 | rb = api; |
147 | 153 | ||
154 | #ifdef USE_IRAM | ||
155 | rb->memcpy(iramstart, iramcopy, iramend-iramstart); | ||
156 | #endif | ||
157 | |||
148 | /* this function sets up the buffers and reads the file into RAM */ | 158 | /* this function sets up the buffers and reads the file into RAM */ |
149 | if (local_init(file,"/wvtest.wav",&file_info,api)) | 159 | if (local_init(file,"/wvtest.wav",&file_info,api)) |
150 | { | 160 | { |