Return to midiplay.c CVS log | Up to [local] / src / usr.bin / midiplay |
version 1.13, 2011/04/28 07:23:46 | version 1.14, 2011/09/20 18:35:24 | ||
---|---|---|---|
|
|
||
#include <stdio.h> | #include <stdio.h> | ||
#include <stdlib.h> | #include <stdlib.h> | ||
#include <limits.h> | #include <limits.h> | ||
#include <fcntl.h> | |||
#include <err.h> | #include <err.h> | ||
#include <unistd.h> | #include <unistd.h> | ||
#include <string.h> | #include <string.h> | ||
|
|
||
argv += optind; | argv += optind; | ||
hdl = mio_open(file, MIO_OUT, 0); | hdl = mio_open(file, MIO_OUT, 0); | ||
if (hdl == NULL) { | if (hdl == NULL) | ||
fprintf(stderr, "failed to open MIDI output\n"); | errx(1, "failed to open MIDI output"); | ||
exit(1); | |||
} | |||
if (gmreset) | if (gmreset) | ||
midireset(); | midireset(); | ||