Unnamed
public text v1 · immutable# Function to play audio streams.
playAudio(){
# Format : mplayer stream devnull
mplayer $1 2>/dev/null |grep Playing
}
# Old
case $foo in
1)
echo "Please wait - connecting to BBC3"
echo
# bbc3-classic is an external script.
bbc3-classical | grep Playing
echo
# New
case $foo in
1)
echo "Please wait - connecting to BBC3"
echo
playAudio rtsp://rmlive.bbc.co.uk/bbc-rbs/rmlive/ev7/live24/radio3/live/r3_dsat_g2.ra
echo