summaryrefslogtreecommitdiff
path: root/apps/plugins/pacbox
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pacbox')
-rw-r--r--apps/plugins/pacbox/pacbox.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/pacbox/pacbox.c b/apps/plugins/pacbox/pacbox.c
index b8625eead6..7177245d9f 100644
--- a/apps/plugins/pacbox/pacbox.c
+++ b/apps/plugins/pacbox/pacbox.c
@@ -489,10 +489,18 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
489{ 489{
490 (void)parameter; 490 (void)parameter;
491 int status; 491 int status;
492#ifdef USE_IRAM
493 void* audiobuf;
494 int audiosize;
495#endif
492 496
493 rb = api; 497 rb = api;
494 498
495#ifdef USE_IRAM 499#ifdef USE_IRAM
500 /* We need to stop audio playback in order to use IRAM, so we grab
501 the audio buffer - but we don't use it. */
502 audiobuf = rb->plugin_get_audio_buffer(&audiosize);
503
496 rb->memcpy(iramstart, iramcopy, iramend-iramstart); 504 rb->memcpy(iramstart, iramcopy, iramend-iramstart);
497 rb->memset(iedata, 0, iend - iedata); 505 rb->memset(iedata, 0, iend - iedata);
498#endif 506#endif