summaryrefslogtreecommitdiff
path: root/apps/plugins/midi/midifile.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/midi/midifile.c')
-rw-r--r--apps/plugins/midi/midifile.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/plugins/midi/midifile.c b/apps/plugins/midi/midifile.c
index 08efb73529..c786b8e5a6 100644
--- a/apps/plugins/midi/midifile.c
+++ b/apps/plugins/midi/midifile.c
@@ -185,7 +185,6 @@ struct Track * readTrack(int file)
185 trk->pos = 0; 185 trk->pos = 0;
186 trk->delta = 0; 186 trk->delta = 0;
187 187
188 int len=0;
189 int numEvents=0; 188 int numEvents=0;
190 189
191 int pos = rb->lseek(file, 0, SEEK_CUR); 190 int pos = rb->lseek(file, 0, SEEK_CUR);
@@ -269,6 +268,8 @@ int readVarData(int file)
269 return(value); 268 return(value);
270} 269}
271 270
271
272/*
272//This function should not be needed because we 273//This function should not be needed because we
273//can just release the whole memory buffer at once 274//can just release the whole memory buffer at once
274void unloadFile(struct MIDIfile * mf) 275void unloadFile(struct MIDIfile * mf)
@@ -296,10 +297,10 @@ void unloadFile(struct MIDIfile * mf)
296 } 297 }
297 free(mf); //Unload the main struct 298 free(mf); //Unload the main struct
298} 299}
299 300*/
300void bail(const char * err) 301void bail(const char * err)
301{ 302{
302 printf("\nERROR: %s\n", err); 303 rb->splash(HZ*3, true, err);
303 exit(0); 304 exit(0);
304} 305}
305 306