Stop playback before starting to use IRAM

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9947 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2006-05-15 21:25:43 +00:00
parent 83f67db3ee
commit 830ec63b4b

View file

@ -859,6 +859,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
#endif
#ifdef USE_IRAM
/* We need to stop audio playback in order to use IRAM */
rb->audio_stop();
memcpy(iramstart, iramcopy, iramend-iramstart);
memset(iedata, 0, iend - iedata);
#endif