diff options
author | Nils Wallménius <nils@rockbox.org> | 2007-11-11 01:02:45 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2007-11-11 01:02:45 +0000 |
commit | 0fd4c2e455957ec078425361972003e8c3c50fe4 (patch) | |
tree | dbd1e43836bf567cf8c5bc1f54c9eb4e3c2a77be /apps/plugins/midi/midiplay.c | |
parent | d185f9eba8706fb2415eb6406a0ffd90113e95da (diff) |
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.c | 2 |
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) { notesUsed = 0; for(a=0; a<MAX_VOICES; a++) - if(voices[a].isUsed == 1) + if(voices[a].isUsed) notesUsed++; tick(); } while(notesUsed == 0); |