Lines Matching defs:file
45 * A MIDI event after being parsed/loaded from the file.
76 static FILE *file;
77 static int file_offset; /* current offset in input file */
219 return getc(file);
230 return !feof(file) ? value : -1;
275 return !feof(file) ? value : -1;
304 /* reads one complete track from the file */
311 /* the current file position is after the track ID and length */
333 ungetc(c, file);
457 /* reads an entire MIDI file */
467 errormsg("%s: invalid file format", file_name);
546 if (feof(file)) {
547 errormsg("%s: unexpected end of file", file_name);
566 /* skip file length */
572 /* check file type ("RMID" = RIFF MIDI) */
575 errormsg("%s: invalid file format", file_name);
582 if (feof(file)) {
775 /* calculate length of the entire file */
885 file = stdin;
887 file = fopen(file_name, "rb");
888 if (!file) {
908 if (file != stdin)
909 fclose(file);
1054 errormsg("Please specify a file to play.");