diff options
author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-11-19 16:37:55 +0000 |
---|---|---|
committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-11-19 16:37:55 +0000 |
commit | 51923703fd455088255c52123c7d230772d077ed (patch) | |
tree | 2a9b8726ed8b69e1bb50a2e10551234f17a49d3b /apps | |
parent | d3b8245ca87177af9454e823acb6f57b47e196ca (diff) |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/buffering.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/buffering.c b/apps/buffering.c index fd386fd29f..d5ed4e2470 100644 --- a/apps/buffering.c +++ b/apps/buffering.c @@ -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 */ |