diff options
Diffstat (limited to 'apps/plugins/midi/guspat.c')
-rw-r--r-- | apps/plugins/midi/guspat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/midi/guspat.c b/apps/plugins/midi/guspat.c index ea0ca92518..d8854b84b7 100644 --- a/apps/plugins/midi/guspat.c +++ b/apps/plugins/midi/guspat.c | |||
@@ -37,12 +37,12 @@ const uint32_t gustable[]= | |||
37 | 4186073, 4434930, 4698645, 4978041, 5274051, 5587663, 5919922, 6271939, 6644889, 7040015, 7458636, 7902150 | 37 | 4186073, 4434930, 4698645, 4978041, 5274051, 5587663, 5919922, 6271939, 6644889, 7040015, 7458636, 7902150 |
38 | }; | 38 | }; |
39 | 39 | ||
40 | unsigned int readWord(int file) | 40 | static unsigned int readWord(int file) |
41 | { | 41 | { |
42 | return (readChar(file)<<0) | (readChar(file)<<8); // | (readChar(file)<<8) | (readChar(file)<<0); | 42 | return (readChar(file)<<0) | (readChar(file)<<8); // | (readChar(file)<<8) | (readChar(file)<<0); |
43 | } | 43 | } |
44 | 44 | ||
45 | unsigned int readDWord(int file) | 45 | static unsigned int readDWord(int file) |
46 | { | 46 | { |
47 | return (readChar(file)<<0) | (readChar(file)<<8) | (readChar(file)<<16) | (readChar(file)<<24); | 47 | return (readChar(file)<<0) | (readChar(file)<<8) | (readChar(file)<<16) | (readChar(file)<<24); |
48 | } | 48 | } |
@@ -50,7 +50,7 @@ unsigned int readDWord(int file) | |||
50 | int curr_waveform; | 50 | int curr_waveform; |
51 | struct GWaveform waveforms[256] IBSS_ATTR; | 51 | struct GWaveform waveforms[256] IBSS_ATTR; |
52 | 52 | ||
53 | struct GWaveform * loadWaveform(int file) | 53 | static struct GWaveform * loadWaveform(int file) |
54 | { | 54 | { |
55 | struct GWaveform * wav = &waveforms[curr_waveform++]; | 55 | struct GWaveform * wav = &waveforms[curr_waveform++]; |
56 | rb->memset(wav, 0, sizeof(struct GWaveform)); | 56 | rb->memset(wav, 0, sizeof(struct GWaveform)); |
@@ -137,7 +137,7 @@ struct GWaveform * loadWaveform(int file) | |||
137 | return wav; | 137 | return wav; |
138 | } | 138 | } |
139 | 139 | ||
140 | int selectWaveform(struct GPatch * pat, int midiNote) | 140 | static int selectWaveform(struct GPatch * pat, int midiNote) |
141 | { | 141 | { |
142 | /* We divide by 100 here because everyone's freq formula is slightly different */ | 142 | /* We divide by 100 here because everyone's freq formula is slightly different */ |
143 | unsigned int tabFreq = gustable[midiNote]/100; /* Comparison */ | 143 | unsigned int tabFreq = gustable[midiNote]/100; /* Comparison */ |