diff options
Diffstat (limited to 'apps/plugins/pacbox/pacbox.c')
-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 7c2d1e21ca..62f5bcd413 100644 --- a/apps/plugins/pacbox/pacbox.c +++ b/apps/plugins/pacbox/pacbox.c | |||
@@ -29,14 +29,7 @@ | |||
29 | #include "lib/configfile.h" | 29 | #include "lib/configfile.h" |
30 | 30 | ||
31 | PLUGIN_HEADER | 31 | PLUGIN_HEADER |
32 | 32 | PLUGIN_IRAM_DECLARE | |
33 | #ifdef USE_IRAM | ||
34 | extern char iramcopy[]; | ||
35 | extern char iramstart[]; | ||
36 | extern char iramend[]; | ||
37 | extern char iedata[]; | ||
38 | extern char iend[]; | ||
39 | #endif | ||
40 | 33 | ||
41 | struct plugin_api* rb; | 34 | struct plugin_api* rb; |
42 | 35 | ||
@@ -370,21 +363,10 @@ static int gameProc( void ) | |||
370 | enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | 363 | enum plugin_status plugin_start(struct plugin_api* api, void* parameter) |
371 | { | 364 | { |
372 | (void)parameter; | 365 | (void)parameter; |
373 | #ifdef USE_IRAM | ||
374 | void* audiobuf; | ||
375 | int audiosize; | ||
376 | #endif | ||
377 | 366 | ||
378 | rb = api; | 367 | rb = api; |
379 | 368 | ||
380 | #ifdef USE_IRAM | 369 | PLUGIN_IRAM_INIT(rb) |
381 | /* We need to stop audio playback in order to use IRAM, so we grab | ||
382 | the audio buffer - but we don't use it. */ | ||
383 | audiobuf = rb->plugin_get_audio_buffer(&audiosize); | ||
384 | |||
385 | rb->memcpy(iramstart, iramcopy, iramend-iramstart); | ||
386 | rb->memset(iedata, 0, iend - iedata); | ||
387 | #endif | ||
388 | 370 | ||
389 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 371 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
390 | rb->cpu_boost(true); | 372 | rb->cpu_boost(true); |