summaryrefslogtreecommitdiff
path: root/apps/plugins/midi/midiplay.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-11-11 01:02:45 +0000
committerNils Wallménius <nils@rockbox.org>2007-11-11 01:02:45 +0000
commit0fd4c2e455957ec078425361972003e8c3c50fe4 (patch)
treedbd1e43836bf567cf8c5bc1f54c9eb4e3c2a77be /apps/plugins/midi/midiplay.c
parentd185f9eba8706fb2415eb6406a0ffd90113e95da (diff)
downloadrockbox-0fd4c2e455957ec078425361972003e8c3c50fe4.tar.gz
rockbox-0fd4c2e455957ec078425361972003e8c3c50fe4.zip
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
Diffstat (limited to 'apps/plugins/midi/midiplay.c')
-rw-r--r--apps/plugins/midi/midiplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/midi/midiplay.c b/apps/plugins/midi/midiplay.c
index cc8746308f..934cea7695 100644
--- a/apps/plugins/midi/midiplay.c
+++ b/apps/plugins/midi/midiplay.c
@@ -263,7 +263,7 @@ static int midimain(void * filename)
263 { 263 {
264 notesUsed = 0; 264 notesUsed = 0;
265 for(a=0; a<MAX_VOICES; a++) 265 for(a=0; a<MAX_VOICES; a++)
266 if(voices[a].isUsed == 1) 266 if(voices[a].isUsed)
267 notesUsed++; 267 notesUsed++;
268 tick(); 268 tick();
269 } while(notesUsed == 0); 269 } while(notesUsed == 0);