forked from len0rd/rockbox
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
This commit is contained in:
parent
7ed7c840da
commit
ab5a38db92
3 changed files with 1 additions and 8 deletions
|
@ -84,9 +84,6 @@
|
||||||
#define LOOP_PINGPONG 8
|
#define LOOP_PINGPONG 8
|
||||||
#define LOOP_REVERSE 16
|
#define LOOP_REVERSE 16
|
||||||
|
|
||||||
#define LOOPDIR_FORWARD 0
|
|
||||||
#define LOOPDIR_REVERSE 1
|
|
||||||
|
|
||||||
struct MIDIfile
|
struct MIDIfile
|
||||||
{
|
{
|
||||||
int Length;
|
int Length;
|
||||||
|
@ -97,14 +94,13 @@ struct MIDIfile
|
||||||
int numPatches;
|
int numPatches;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
struct SynthObject
|
struct SynthObject
|
||||||
{
|
{
|
||||||
struct GWaveform * wf;
|
struct GWaveform * wf;
|
||||||
int delta;
|
int delta;
|
||||||
int decay;
|
int decay;
|
||||||
unsigned int cp; /* unsigned int */
|
unsigned int cp; /* unsigned int */
|
||||||
int state, loopState, loopDir;
|
int state, loopState;
|
||||||
int note, vol, ch, isUsed;
|
int note, vol, ch, isUsed;
|
||||||
int curRate, curOffset, targetOffset;
|
int curRate, curOffset, targetOffset;
|
||||||
int curPoint;
|
int curPoint;
|
||||||
|
|
|
@ -222,7 +222,6 @@ inline void pressNote(int ch, int note, int vol)
|
||||||
setVolScale(a);
|
setVolScale(a);
|
||||||
|
|
||||||
voices[a].loopState=STATE_NONLOOPING;
|
voices[a].loopState=STATE_NONLOOPING;
|
||||||
voices[a].loopDir = LOOPDIR_FORWARD;
|
|
||||||
/*
|
/*
|
||||||
* OKAY. Gt = Gus Table value
|
* OKAY. Gt = Gus Table value
|
||||||
* rf = Root Frequency of wave
|
* rf = Root Frequency of wave
|
||||||
|
|
|
@ -316,7 +316,6 @@ static inline void synthVoice(struct SynthObject * so, int32_t * out, unsigned i
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
so->delta = -so->delta; /* At this point cp_temp is wrong. We need to take a step */
|
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
|
else
|
||||||
{
|
{
|
||||||
so->delta = -so->delta;
|
so->delta = -so->delta;
|
||||||
so->loopDir = LOOPDIR_REVERSE;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue