Debian Codegraph @

debian/mime

raw
1 # On a terminal "mpg321 -K" for keys and "-v" to print elapsed time.
2 # Reprinting the progress every frame hammers the tty, so
3 # --skip-printing-frames to limit a bit (aiming for perhaps just over
4 # once a second).
5 #
6 # If no terminal then "-q" for no output.
7 #
8 # ENHANCE-ME: Should have a test="..." in these entries so they're
9 # only used if audio output is possible by mpg321's configured or
10 # various methods. That might mean user in the "audio" group, or esd
11 # server reachable, etc. Would playing an empty mp3 be good enough?
12 # Otherwise perhaps mpg321 could help by some "mpg321 --test-output".
13 #
14 # ENHANCE-ME: mpg321 seems almost able to take mp3 input on stdin (by
15 # filename "-") when non-interactive, but it prints a warning message
16 # "tcgetattr(): Invalid argument". Is that supposed to work? If yes
17 # then the non-interactive form here could be "-" stdin which may let
18 # run-mailcap or similar pipe straight in instead of making a temp
19 # file.
20 #
21 audio/mpeg; /usr/bin/mpg321 -K -v --skip-printing-frames=50 %s; needsterminal; description="MPEG Audio"; priority=5
22 audio/mpeg; /usr/bin/mpg321 -q %s; description="MPEG Audio"; priority=5
23