Fix simulator and iriver builds.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6464 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-05-13 00:53:33 +00:00
parent 03d08ecc25
commit 6b16d0e817
2 changed files with 7 additions and 0 deletions

View file

@ -414,8 +414,10 @@ static void fade(bool fade_in)
sound_set(SOUND_VOLUME, fp_volume >> 8); sound_set(SOUND_VOLUME, fp_volume >> 8);
} }
audio_pause(); audio_pause();
#ifndef SIMULATOR
/* let audio thread run and wait for the mas to run out of data */ /* let audio thread run and wait for the mas to run out of data */
while (!mp3_pause_done()) while (!mp3_pause_done())
#endif
sleep(HZ/10); sleep(HZ/10);
/* reset volume to what it was before the fade */ /* reset volume to what it was before the fade */

View file

@ -653,6 +653,11 @@ void mp3_play_pause(bool play)
(void)play; (void)play;
} }
bool mp3_pause_done(void)
{
return true;
}
unsigned char* mp3_get_pos(void) unsigned char* mp3_get_pos(void)
{ {
/* a dummy */ /* a dummy */