From af56130a4ac0a046caff495a7ee570e914e4450b Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 11 Feb 2005 22:54:17 +0000 Subject: 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 --- apps/plugin.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'apps') diff --git a/apps/plugin.c b/apps/plugin.c index f7458b71b2..7b26b0dd57 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 */ -- cgit v1.2.3