forked from len0rd/rockbox
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:
parent
b90594c36b
commit
af56130a4a
1 changed files with 1 additions and 7 deletions
|
|
@ -415,21 +415,15 @@ void* plugin_get_buffer(int* buffer_size)
|
||||||
Playback gets stopped, to avoid conflicts. */
|
Playback gets stopped, to avoid conflicts. */
|
||||||
void* plugin_get_mp3_buffer(int* buffer_size)
|
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();
|
mpeg_stop();
|
||||||
talk_buffer_steal(); /* we use the mp3 buffer, need to tell */
|
talk_buffer_steal(); /* we use the mp3 buffer, need to tell */
|
||||||
*buffer_size = mp3end - mp3buf;
|
*buffer_size = mp3end - mp3buf;
|
||||||
return mp3buf;
|
return mp3buf;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef SIMULATOR
|
#ifndef SIMULATOR
|
||||||
/* Register a periodic time callback, called every "cycles" CPU clocks.
|
/* 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 plugin_register_timer(int cycles, int prio, void (*timer_callback)(void))
|
||||||
{
|
{
|
||||||
int phi = 0; /* bits for the prescaler */
|
int phi = 0; /* bits for the prescaler */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue