Is there a default program where I can check if my audio devices are in silent?
Edit: By silence, I mean that if there is something playing on that (not just activated or opened)
Something like this:
if [[ device0 is silent ]] ; then
radio $RANDOM
fi
Edit 2: What I'm trying to achieve is a script that plays radio and can keep playing when the player fails, e.g. if the internet connection goes down and the player didn't recovery, I will kill the player and start over again
sox. In other case you can trylsof|grep snd. If there's nothing you can turn radio on. – Eddy_Em Jan 15 '13 at 14:03