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:
parent
b2dbc2fe70
commit
d8cb05e31e
1 changed files with 1 additions and 1 deletions
|
@ -457,7 +457,7 @@ static void NORETURN_ATTR voice_thread(void)
|
|||
if ((dest = (char *)voice_buf_get()) != NULL)
|
||||
break;
|
||||
|
||||
yield();
|
||||
sleep(0);
|
||||
}
|
||||
|
||||
voice_buf_commit(dsp_process(td.dsp, dest, td.src, td.count)
|
||||
|
|
Loading…
Reference in a new issue