From 8b850478ee272e24f45d55909082387f6d7460f2 Mon Sep 17 00:00:00 2001 From: nls Date: Thu, 18 Oct 2007 13:43:13 +0000 Subject: [PATCH] Clean out an unused struct member from the synthObject struct git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15189 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/midi/midiutil.h | 6 +----- apps/plugins/midi/sequencer.c | 1 - apps/plugins/midi/synth.c | 2 -- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/apps/plugins/midi/midiutil.h b/apps/plugins/midi/midiutil.h index 30f0009dc..cb89e004a 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 e20047a23..536d41190 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 9ec558031..7ae7a7858 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; } } -- 2.11.4.GIT