summaryrefslogtreecommitdiffstats
path: root/apps/plugins/midi/guspat.h
diff options
context:
space:
mode:
authorStepan Moskovchenko <stevenm@rockbox.org>2005-04-20 21:07:13 +0000
committerStepan Moskovchenko <stevenm@rockbox.org>2005-04-20 21:07:13 +0000
commit9ec1ff8cf5230b502c4f45be39fe75990ce842f1 (patch)
tree98fe264f4d67054164df8b3637e8440da32fc26a /apps/plugins/midi/guspat.h
parent74e9d545ef46111fcbd71073becc8b04b8fbca27 (diff)
downloadrockbox-9ec1ff8cf5230b502c4f45be39fe75990ce842f1.tar.gz
rockbox-9ec1ff8cf5230b502c4f45be39fe75990ce842f1.zip
Fixed warnings, adapted to Rockbox coding style, optimized to 78% realtime.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6329 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/midi/guspat.h')
-rw-r--r--apps/plugins/midi/guspat.h94
1 files changed, 47 insertions, 47 deletions
diff --git a/apps/plugins/midi/guspat.h b/apps/plugins/midi/guspat.h
index 6e41a85d23..e35f54b57a 100644
--- a/apps/plugins/midi/guspat.h
+++ b/apps/plugins/midi/guspat.h
@@ -16,7 +16,7 @@
*
****************************************************************************/
-//This came from one of the Gravis documents
+/* This came from one of the Gravis documents */
static const unsigned int gustable[]=
{
8175, 8661, 9177, 9722, 10300, 10913, 11562, 12249, 12978, 13750, 14567, 15433,
@@ -33,63 +33,63 @@ static const unsigned int gustable[]=
struct GWaveform
{
- unsigned char * name;
- unsigned char fractions;
- unsigned int wavSize;
- unsigned int numSamples;
- unsigned int startLoop;
- unsigned int endLoop;
- unsigned int sampRate;
- unsigned int lowFreq;
- unsigned int highFreq;
- unsigned int rootFreq;
- unsigned int tune;
- unsigned int balance;
- unsigned char * envRate;
- unsigned char * envOffset;
+ unsigned char * name;
+ unsigned char fractions;
+ unsigned int wavSize;
+ unsigned int numSamples;
+ unsigned int startLoop;
+ unsigned int endLoop;
+ unsigned int sampRate;
+ unsigned int lowFreq;
+ unsigned int highFreq;
+ unsigned int rootFreq;
+ unsigned int tune;
+ unsigned int balance;
+ unsigned char * envRate;
+ unsigned char * envOffset;
- unsigned char tremSweep;
- unsigned char tremRate;
- unsigned char tremDepth;
- unsigned char vibSweep;
- unsigned char vibRate;
- unsigned char vibDepth;
- unsigned char mode;
+ unsigned char tremSweep;
+ unsigned char tremRate;
+ unsigned char tremDepth;
+ unsigned char vibSweep;
+ unsigned char vibRate;
+ unsigned char vibDepth;
+ unsigned char mode;
- unsigned int scaleFreq;
- unsigned int scaleFactor;
+ unsigned int scaleFreq;
+ unsigned int scaleFactor;
- unsigned char * res;
- signed char * data;
+ unsigned char * res;
+ signed char * data;
};
struct GPatch
{
- unsigned int patchNumber;
- unsigned char * header;
- unsigned char * gravisid;
- unsigned char * desc;
- unsigned char inst, voc, chan;
- unsigned int numWaveforms;
- unsigned int datSize;
- unsigned int vol;
- unsigned char * res;
+ unsigned int patchNumber;
+ unsigned char * header;
+ unsigned char * gravisid;
+ unsigned char * desc;
+ unsigned char inst, voc, chan;
+ unsigned int numWaveforms;
+ unsigned int datSize;
+ unsigned int vol;
+ unsigned char * res;
- unsigned int instrID;
- unsigned char * instrName;
- unsigned int instrSize;
- unsigned int layers;
- unsigned char * instrRes;
+ unsigned int instrID;
+ unsigned char * instrName;
+ unsigned int instrSize;
+ unsigned int layers;
+ unsigned char * instrRes;
- unsigned char layerDup;
- unsigned char layerID;
- unsigned int layerSize;
- unsigned char numWaves;
- unsigned char * layerRes;
+ unsigned char layerDup;
+ unsigned char layerID;
+ unsigned int layerSize;
+ unsigned char numWaves;
+ unsigned char * layerRes;
- unsigned char noteTable[128];
- struct GWaveform * waveforms[255];
+ unsigned char noteTable[128];
+ struct GWaveform * waveforms[255];
};