play, file: recognize midi and mus audio
This commit is contained in:
parent
297bf25f61
commit
70c6dab003
2 changed files with 8 additions and 1 deletions
|
@ -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]
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue