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
This commit is contained in:
Jens Arnold 2005-02-11 22:54:17 +00:00
parent b90594c36b
commit af56130a4a

View file

@ -415,16 +415,10 @@ 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