view audtool/examples/np.sh @ 1362:651327e12a3a trunk

[svn] - use of sleep() or usleep() in multi-thread program may cause 100% CPU usage because of signal distribution.
author yaz
date Fri, 30 Jun 2006 04:18:20 -0700
parents 6af3f8fb2ed0
children 641ee4092aea
line wrap: on
line source

#!/bin/sh
SONGTITLE=$(audtool current-song)
SONGELAPSED=$(audtool current-song-output-length)
SONGLEN=$(audtool current-song-length)

echo "np: $SONGTITLE ($SONGELAPSED/$SONGLEN)"