1
0
Fork 0
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:
Nils Wallménius 2007-11-11 01:02:45 +00:00
parent d185f9eba8
commit 0fd4c2e455
4 changed files with 43 additions and 45 deletions

View file

@ -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);