forked from len0rd/rockbox
Better simulator mpeg emulation
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3232 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
456715a72c
commit
b4902aff71
1 changed files with 3 additions and 2 deletions
|
|
@ -2794,11 +2794,12 @@ static void mpeg_thread(void)
|
|||
while ( 1 ) {
|
||||
if (is_playing) {
|
||||
id3 = mpeg_current_track();
|
||||
if (!paused)
|
||||
id3->elapsed+=1000;
|
||||
if (id3->elapsed>=id3->length)
|
||||
mpeg_next();
|
||||
}
|
||||
sleep(1);
|
||||
sleep(HZ);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue