diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2006-11-18 02:18:29 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2006-11-18 02:18:29 +0000 |
| commit | acc29d95be85c9cfd0d8f74dda813d7d1082e2ec (patch) | |
| tree | 81fdd154d122b393d6254968cba5bc90b63e4741 /apps/plugins/midiplay.c | |
| parent | e2a262ee258769136eadc58c2bc8e3aa53db1a71 (diff) | |
| download | rockbox-acc29d95be85c9cfd0d8f74dda813d7d1082e2ec.zip rockbox-acc29d95be85c9cfd0d8f74dda813d7d1082e2ec.tar.gz rockbox-acc29d95be85c9cfd0d8f74dda813d7d1082e2ec.tar.bz2 rockbox-acc29d95be85c9cfd0d8f74dda813d7d1082e2ec.tar.xz | |
SWCODEC/IRAM: Save voice IRAM when a plugin initializes its IRAM. Defines two macros for declaring and initializing IRAM. Plugins should use these instead. See mp3_encoder, doom, etc. for details. Further tweaks in buffer restoration after other use. Hiding of some interfaces that should only be used by buffer management.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11544 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/midiplay.c')
| -rw-r--r-- | apps/plugins/midiplay.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/apps/plugins/midiplay.c b/apps/plugins/midiplay.c index 585c7ee..a0e7d0e 100644 --- a/apps/plugins/midiplay.c +++ b/apps/plugins/midiplay.c @@ -19,7 +19,7 @@ #include "../../plugin.h" PLUGIN_HEADER - +PLUGIN_IRAM_DECLARE /* variable button definitions */ #if CONFIG_KEYPAD == RECORDER_PAD @@ -102,14 +102,6 @@ short gmbuf[BUF_SIZE*NBUF] IBSS_ATTR; int quit=0; struct plugin_api * rb; -#ifdef USE_IRAM -extern char iramcopy[]; -extern char iramstart[]; -extern char iramend[]; -extern char iedata[]; -extern char iend[]; -#endif - enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { int retval = 0; @@ -122,10 +114,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) } rb->lcd_setfont(0); -#ifdef USE_IRAM - rb->memcpy(iramstart, iramcopy, iramend-iramstart); - rb->memset(iedata, 0, iend - iedata); -#endif + PLUGIN_IRAM_INIT(rb) #if defined(HAVE_ADJUSTABLE_CPU_FREQ) rb->cpu_boost(true); |