forked from len0rd/rockbox
Rearrange logic in the synthVoice loop to do less tests and remove need of a struct member for a small speedup, move some memory lookups out of the loop for a small speedup, further cosmetic changes to the synthVoice function. Change isUsed to a bool for clearer logic and also a tiny speedup
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15563 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d185f9eba8
commit
0fd4c2e455
4 changed files with 43 additions and 45 deletions
|
|
@ -263,7 +263,7 @@ static int midimain(void * filename)
|
|||
{
|
||||
notesUsed = 0;
|
||||
for(a=0; a<MAX_VOICES; a++)
|
||||
if(voices[a].isUsed == 1)
|
||||
if(voices[a].isUsed)
|
||||
notesUsed++;
|
||||
tick();
|
||||
} while(notesUsed == 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue