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/midiutil.h | |
parent | d185f9eba8706fb2415eb6406a0ffd90113e95da (diff) | |
download | rockbox-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/midiutil.h')
-rw-r--r-- | apps/plugins/midi/midiutil.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/midi/midiutil.h b/apps/plugins/midi/midiutil.h index dfffe39dd6..f26f1208e3 100644 --- a/apps/plugins/midi/midiutil.h +++ b/apps/plugins/midi/midiutil.h | |||
@@ -109,11 +109,12 @@ struct SynthObject | |||
109 | int delta; | 109 | int delta; |
110 | int decay; | 110 | int decay; |
111 | unsigned int cp; /* unsigned int */ | 111 | unsigned int cp; /* unsigned int */ |
112 | int state, loopState; | 112 | int state; |
113 | int note, vol, ch, isUsed; | 113 | int note, vol, ch; |
114 | int curRate, curOffset, targetOffset; | 114 | int curRate, curOffset, targetOffset; |
115 | int curPoint; | 115 | int curPoint; |
116 | signed short int volscale; | 116 | signed short int volscale; |
117 | bool isUsed; | ||
117 | }; | 118 | }; |
118 | 119 | ||
119 | struct Event | 120 | struct Event |