Voice doesn't have to consume 100% CPU while waiting for an output buffer to be available. Use 'sleep(0)' instead of 'yield()' while polling.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30132 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2011-07-08 23:39:01 +00:00
parent b2dbc2fe70
commit d8cb05e31e

View file

@ -457,7 +457,7 @@ static void NORETURN_ATTR voice_thread(void)
if ((dest = (char *)voice_buf_get()) != NULL) if ((dest = (char *)voice_buf_get()) != NULL)
break; break;
yield(); sleep(0);
} }
voice_buf_commit(dsp_process(td.dsp, dest, td.src, td.count) voice_buf_commit(dsp_process(td.dsp, dest, td.src, td.count)