summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-02-11 22:54:17 +0000
committerJens Arnold <amiconn@rockbox.org>2005-02-11 22:54:17 +0000
commitaf56130a4ac0a046caff495a7ee570e914e4450b (patch)
tree566a4ec749b56dbfdb3579b4939ac405e527c749 /apps/plugin.c
parentb90594c36bc7f4fa2fdd8121d8c42feb3c58609f (diff)
downloadrockbox-af56130a4ac0a046caff495a7ee570e914e4450b.zip
rockbox-af56130a4ac0a046caff495a7ee570e914e4450b.tar.gz
rockbox-af56130a4ac0a046caff495a7ee570e914e4450b.tar.bz2
rockbox-af56130a4ac0a046caff495a7ee570e914e4450b.tar.xz
Simulators: handle plugins asking for the mp3 buffer the same way as on the target (no separate buffer).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5920 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index f7458b7..7b26b0d 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -415,21 +415,15 @@ void* plugin_get_buffer(int* buffer_size)
Playback gets stopped, to avoid conflicts. */
void* plugin_get_mp3_buffer(int* buffer_size)
{
-#ifdef SIMULATOR
- static unsigned char buf[1700*1024];
- *buffer_size = sizeof(buf);
- return buf;
-#else
mpeg_stop();
talk_buffer_steal(); /* we use the mp3 buffer, need to tell */
*buffer_size = mp3end - mp3buf;
return mp3buf;
-#endif
}
#ifndef SIMULATOR
/* Register a periodic time callback, called every "cycles" CPU clocks.
- Note that this function will be called in interrupt context! */
+ Note that this function will be called in interrupt context! */
int plugin_register_timer(int cycles, int prio, void (*timer_callback)(void))
{
int phi = 0; /* bits for the prescaler */