Make the sim sleep between each file chunk, so that its buffering behaves more like that of a real target.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15694 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d3b8245ca8
commit
51923703fd
1 changed files with 4 additions and 0 deletions
|
@ -654,7 +654,11 @@ static bool buffer_handle(int handle_id)
|
|||
h->available += rc;
|
||||
h->filerem -= rc;
|
||||
|
||||
#ifdef SIMULATOR
|
||||
sleep(1);
|
||||
#else
|
||||
yield();
|
||||
#endif
|
||||
|
||||
/* If this is a large file, see if we need to break or give the codec
|
||||
* more time */
|
||||
|
|
Loading…
Reference in a new issue