summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-10-18 13:43:13 +0000
committerNils Wallménius <nils@rockbox.org>2007-10-18 13:43:13 +0000
commitab5a38db9205ce495249234c968cef31764f70d4 (patch)
tree10c34d889584cab32845ca1aeeefd44e2c8c5780 /apps
parent7ed7c840da8f613d6b544e31c8c823e1a99a2557 (diff)
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
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/midi/midiutil.h6
-rw-r--r--apps/plugins/midi/sequencer.c1
-rw-r--r--apps/plugins/midi/synth.c2
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;
}
}