diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2005-06-09 20:01:09 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2005-06-09 20:01:09 +0000 |
commit | 9e200e35cde8fc93a95e1955f9ae62045434b72b (patch) | |
tree | 70d20601639acf0a3e95c0b2c51dd63b32385e8a /apps/plugins | |
parent | fe468b1149bf61b2b4a0c4a2ac3624632af5cb2b (diff) |
Fixed pause indicator. Better UI response with FLAC and Ogg Vorbis.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6642 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/codecflac.c | 3 | ||||
-rw-r--r-- | apps/plugins/codecvorbis.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/codecflac.c b/apps/plugins/codecflac.c index 57089ee9a3..8862bbc215 100644 --- a/apps/plugins/codecflac.c +++ b/apps/plugins/codecflac.c @@ -75,7 +75,8 @@ FLAC__StreamDecoderWriteStatus flac_write_handler(const FLAC__SeekableStreamDeco samplesdone+=samples; ci->set_elapsed(samplesdone/(ci->id3->frequency/1000)); - + + rb->yield(); while (!ci->audiobuffer_insert(pcmbuf, data_size)) rb->yield(); diff --git a/apps/plugins/codecvorbis.c b/apps/plugins/codecvorbis.c index 2fcc031ce5..948482677f 100644 --- a/apps/plugins/codecvorbis.c +++ b/apps/plugins/codecvorbis.c @@ -142,6 +142,8 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parm) rb->yield(); if (ci->stop_codec || ci->reload_codec) break ; + + rb->yield(); while (!ci->audiobuffer_insert(pcmbuf, n)) rb->yield(); |