diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/midi/midiutil.h | 6 | ||||
-rw-r--r-- | apps/plugins/midi/sequencer.c | 1 | ||||
-rw-r--r-- | apps/plugins/midi/synth.c | 2 |
3 files changed, 1 insertions, 8 deletions
diff --git a/apps/plugins/midi/midiutil.h b/apps/plugins/midi/midiutil.h index 30f0009dc7..cb89e004aa 100644 --- a/apps/plugins/midi/midiutil.h +++ b/apps/plugins/midi/midiutil.h @@ -84,9 +84,6 @@ #define LOOP_PINGPONG 8 #define LOOP_REVERSE 16 -#define LOOPDIR_FORWARD 0 -#define LOOPDIR_REVERSE 1 - struct MIDIfile { int Length; @@ -97,14 +94,13 @@ struct MIDIfile int numPatches; }; - struct SynthObject { struct GWaveform * wf; int delta; int decay; unsigned int cp; /* unsigned int */ - int state, loopState, loopDir; + int state, loopState; int note, vol, ch, isUsed; int curRate, curOffset, targetOffset; int curPoint; diff --git a/apps/plugins/midi/sequencer.c b/apps/plugins/midi/sequencer.c index e20047a231..536d411902 100644 --- a/apps/plugins/midi/sequencer.c +++ b/apps/plugins/midi/sequencer.c @@ -222,7 +222,6 @@ inline void pressNote(int ch, int note, int vol) setVolScale(a); voices[a].loopState=STATE_NONLOOPING; - voices[a].loopDir = LOOPDIR_FORWARD; /* * OKAY. Gt = Gus Table value * rf = Root Frequency of wave diff --git a/apps/plugins/midi/synth.c b/apps/plugins/midi/synth.c index 9ec5580310..7ae7a78583 100644 --- a/apps/plugins/midi/synth.c +++ b/apps/plugins/midi/synth.c @@ -316,7 +316,6 @@ static inline void synthVoice(struct SynthObject * so, int32_t * out, unsigned i else { so->delta = -so->delta; /* At this point cp_temp is wrong. We need to take a step */ - so->loopDir = LOOPDIR_FORWARD; } } @@ -331,7 +330,6 @@ static inline void synthVoice(struct SynthObject * so, int32_t * out, unsigned i else { so->delta = -so->delta; - so->loopDir = LOOPDIR_REVERSE; } } |