diff options
Diffstat (limited to 'apps/plugins/pacbox')
| -rw-r--r-- | apps/plugins/pacbox/pacbox.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/apps/plugins/pacbox/pacbox.c b/apps/plugins/pacbox/pacbox.c index 7c2d1e2..62f5bcd 100644 --- a/apps/plugins/pacbox/pacbox.c +++ b/apps/plugins/pacbox/pacbox.c @@ -29,14 +29,7 @@ #include "lib/configfile.h" PLUGIN_HEADER - -#ifdef USE_IRAM -extern char iramcopy[]; -extern char iramstart[]; -extern char iramend[]; -extern char iedata[]; -extern char iend[]; -#endif +PLUGIN_IRAM_DECLARE struct plugin_api* rb; @@ -370,21 +363,10 @@ static int gameProc( void ) enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { (void)parameter; -#ifdef USE_IRAM - void* audiobuf; - int audiosize; -#endif rb = api; -#ifdef USE_IRAM - /* We need to stop audio playback in order to use IRAM, so we grab - the audio buffer - but we don't use it. */ - audiobuf = rb->plugin_get_audio_buffer(&audiosize); - - rb->memcpy(iramstart, iramcopy, iramend-iramstart); - rb->memset(iedata, 0, iend - iedata); -#endif + PLUGIN_IRAM_INIT(rb) #ifdef HAVE_ADJUSTABLE_CPU_FREQ rb->cpu_boost(true); |