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:
Nicolas Pennequin 2007-11-19 16:37:55 +00:00
parent d3b8245ca8
commit 51923703fd

View file

@ -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 */