summaryrefslogtreecommitdiff
path: root/apps/codecs/alac.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-09-24 12:35:18 +0000
committerDave Chapman <dave@dchapman.com>2005-09-24 12:35:18 +0000
commit9a625ef7ac544976f45734d62294a52ef32cfe66 (patch)
tree96900bf622e2b9032ca63ad874598c88a4b72202 /apps/codecs/alac.c
parentcae670ff1fc1e9b9dff3132ed6e6f1df98c764d6 (diff)
downloadrockbox-9a625ef7ac544976f45734d62294a52ef32cfe66.tar.gz
rockbox-9a625ef7ac544976f45734d62294a52ef32cfe66.zip
Add yield() calls inside the monolithic ALAC decode_frame() function - improves responsiveness of UI during ALAC decoding
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7557 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/alac.c')
-rw-r--r--apps/codecs/alac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/alac.c b/apps/codecs/alac.c
index f00ae979bf..5f39e5eacb 100644
--- a/apps/codecs/alac.c
+++ b/apps/codecs/alac.c
@@ -356,7 +356,7 @@ enum codec_status codec_start(struct codec_api* api)
356 /* Decode one block - returned samples will be host-endian */ 356 /* Decode one block - returned samples will be host-endian */
357 outputBytes = destBufferSize; 357 outputBytes = destBufferSize;
358 rb->yield(); 358 rb->yield();
359 pDestBuffer=decode_frame(&alac, buffer, &outputBytes); 359 pDestBuffer=decode_frame(&alac, buffer, &outputBytes, rb->yield);
360 360
361 /* Advance codec buffer - unless we did a read */ 361 /* Advance codec buffer - unless we did a read */
362 if ((char*)buffer!=(char*)inputBuffer) { 362 if ((char*)buffer!=(char*)inputBuffer) {