Mercurial > audlegacy
view src/audtool/examples/np.sh @ 2404:60f1bc20c19c trunk
[svn] - hooking implementation.
example: hook_register("playback begin"); hook_call("playback begin", <PlaylistEntry>);
| author | nenolod |
|---|---|
| date | Thu, 25 Jan 2007 20:23:16 -0800 |
| parents | 3149d4b1a9a9 |
| children |
line wrap: on
line source
#!/bin/sh SONGTITLE=$(audtool current-song) SONGELAPSED=$(audtool current-song-output-length) SONGLEN=$(audtool current-song-length) MIME=$(file -ib "`audtool current-song-filename`") echo "np: $SONGTITLE [$MIME] ($SONGELAPSED/$SONGLEN)"
