summaryrefslogtreecommitdiff
path: root/apps/plugins/midi/guspat.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/midi/guspat.c')
-rw-r--r--apps/plugins/midi/guspat.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/apps/plugins/midi/guspat.c b/apps/plugins/midi/guspat.c
index 1b310d2de8..419cfa3ad0 100644
--- a/apps/plugins/midi/guspat.c
+++ b/apps/plugins/midi/guspat.c
@@ -162,12 +162,10 @@ struct GPatch * gusload(char * filename)
162 162
163 int file = rb->open(filename, O_RDONLY); 163 int file = rb->open(filename, O_RDONLY);
164 164
165 DEBUGF("filename: %s\n", filename);
166
167 if(file == -1) 165 if(file == -1)
168 { 166 {
169 char message[MAX_PATH]; 167 char message[50];
170 rb->snprintf(message, MAX_PATH, "Error opening %s", filename); 168 rb->snprintf(message, 50, "Error opening %s", filename);
171 rb->splash(HZ*2, message); 169 rb->splash(HZ*2, message);
172 return NULL; 170 return NULL;
173 } 171 }
@@ -199,12 +197,12 @@ struct GPatch * gusload(char * filename)
199 197
200/* printf("\nFILE: %s", filename); */ 198/* printf("\nFILE: %s", filename); */
201/* printf("\nlayerSamples=%d", gp->numWaves); */ 199/* printf("\nlayerSamples=%d", gp->numWaves); */
202DEBUGF("hej\n"); 200
203 int a=0; 201 int a=0;
204 for(a=0; a<gp->numWaves; a++) 202 for(a=0; a<gp->numWaves; a++)
205 gp->waveforms[a] = loadWaveform(file); 203 gp->waveforms[a] = loadWaveform(file);
206 204
207DEBUGF("hej2\n"); 205
208/* printf("\nPrecomputing note table"); */ 206/* printf("\nPrecomputing note table"); */
209 207
210 for(a=0; a<128; a++) 208 for(a=0; a<128; a++)
@@ -212,7 +210,7 @@ DEBUGF("hej2\n");
212 gp->noteTable[a] = selectWaveform(gp, a); 210 gp->noteTable[a] = selectWaveform(gp, a);
213 } 211 }
214 rb->close(file); 212 rb->close(file);
215DEBUGF("hej3\n"); 213
216 return gp; 214 return gp;
217} 215}
218 216