diff --git a/rc/bin/play b/rc/bin/play index 7203769d4..c1f982727 100755 --- a/rc/bin/play +++ b/rc/bin/play @@ -54,6 +54,10 @@ fn play1 { audio/flacdec case *audio/basic* audio/sundec + case *audio/midi* + games/midi -c + case *audio/mus* + games/mus | games/midi -c case *pls* awk 'BEGIN {FS="="} /^File/{print $2}' | play1 list plain case * @@ -68,6 +72,8 @@ fn play1 { audio/flacdec case *.au *.AU audio/sundec + case *.mid *.MID + games/midi -c case * echo $argv0: $1: unknown format: $2 >[1=2] } diff --git a/sys/src/cmd/file.c b/sys/src/cmd/file.c index 6e2eb1b14..4c7ff421c 100644 --- a/sys/src/cmd/file.c +++ b/sys/src/cmd/file.c @@ -872,6 +872,8 @@ struct FILE_STRING "BEGIN:VCARD\n", "vCard", 12, "text/directory;profile=vcard", "AT&T", "DjVu document", 4, "image/vnd.djvu", "Extended module: ", "XM audio", 17, "audio/xm", + "MThd", "midi audio", 4, "audio/midi", + "MUS\x1a", "mus audio", 4, "audio/mus", 0,0,0,0 }; @@ -1653,4 +1655,3 @@ isface(void) print("face image depth %d\n", ldepth); return 1; } -