From 0fd4c2e455957ec078425361972003e8c3c50fe4 Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Sun, 11 Nov 2007 01:02:45 +0000 Subject: 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 --- apps/plugins/midi/midiutil.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/plugins/midi/midiutil.h') 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 int delta; int decay; unsigned int cp; /* unsigned int */ - int state, loopState; - int note, vol, ch, isUsed; + int state; + int note, vol, ch; int curRate, curOffset, targetOffset; int curPoint; signed short int volscale; + bool isUsed; }; struct Event -- cgit v1.2.3