# $HeadURL$ $LastChangedRevision$ # ############################################################################## # # Stations # # The format of each line is as follows: # # station 'Station Description' 'URL' # # Lines can be wrapped using the normal backslash-on-the-end-of-the-line convention. # ############################################################################## station r4 'BBC Radio 4' 'http://www.bbc.co.uk/radio/listen/live/r4.asx' mplayer_pl station r3 'BBC Radio 3' 'http://www.bbc.co.uk/radio/listen/live/r3.asx' mplayer_pl station m945 'M94.5' 'http://stream.m945.mwn.de/m945-hq.mp3' totem station dlr 'Deutschland Radio' 'http://www.dradio.de/streaming/dkultur.m3u' totem station dlf 'Deutschlandfunk' 'http://www.dradio.de/streaming/dlf.m3u' totem station drone 'Drone Zone' 'http://www.somafm.com/startstream=dronezone.pls' rhythmbox station salad 'Groove Salad' 'http://www.somafm.com/startstream=groovesalad.pls' rhythmbox # This URL was got from http://www.br-online.de/bayern2/, clicking on the # 'Live Hoeren' link and then looking at source or the pop-up page. station b2 'Bayern 2' 'http://gffstream.ic.llnwd.net/stream/gffstream_w2b' totem station bbcnews 'BBC News Bulletin' 'http://wsdownload.bbc.co.uk/generateasx.esi?file=worldservice/css/nb/latest/bbcnews.wma' mplayer_pl ############################################################################## # # Players # # # The format of each line is as follows: # # player 'command to start playserver' 'command to submit URL to playserver' 'command to test if playserver is running' # # Lines can be wrapped using the normal backslash-on-the-end-of-the-line convention. # The playserver *must* run like a normal daemon; i.e. forking and returning immediately, # but you can use the 'sh -c " &"' try to do this if the command doesn't do it # itself. # ############################################################################## player totem 'sh -c "totem &"' \ 'totem' \ 'prog_is_mine totem > /dev/null' \ 'sh -c "totem $(wra-config wra_lib_prefix)/STOP.mp3; sleep 1"' player mplayer_pl 'mplayer_pl_server' \ 'mplayer_pl_submit' \ 'prog_is_mine mplayer > /dev/null' \ 'mplayer_pl_stop' #'sh -c "mplayer_pl_submit $(wra-config wra_lib_prefix)/STOP.mp3; sleep 1"' # The author's realplayer generates messages to stderr and stdout, hence the redirections. player realplay 'sh -c "realplay > /dev/null &"' \ 'sh -c "realplay \"\$@\" > /dev/null 2>&1" DUMMY' \ 'prog_is_mine realplay.bin > /dev/null' \ 'sh -c "realplay $(wra-config wra_lib_prefix)/STOP.mp3 > /dev/null 2>&1; sleep 1"' player rhythmbox 'sh -c "rhythmbox &"' \ 'sh -c "rhythmbox-client --clear-queue; rhythmbox-client --play-uri=\$0"' \ 'prog_is_mine rhythmbox > /dev/null' \ 'rhythmbox-client --pause' player xfmedia 'sh -c "xfmedia &"' \ 'sh -c "xfmedia-remote --playlist-clear; xfmedia-remote --playlist-add=\$0; xfmedia-remote --play"' \ 'prog_is_mine xfmedia > /dev/null' \ 'sh -c "xfmedia-remote --playlist-clear; xfmedia-remote --playlist-add=$(wra-config wra_lib_prefix)/STOP.mp3; xfmedia-remote --play; sleep 1"' ############################################################################## # # Assignments # # # The format of each line is as follow: # # = # # Lines can be wrapped using the normal backslash-on-the-end-of-the-line convention. # If has spaces in it then it must be quoted. Below are assigments which # assign the default values (i.e. if you comment these out things won't change but # if you change the value then things will change). Explanations for each variable # are given below. # ############################################################################## # MIXER_CHANNEL: name of the mixer channel which wra will adjust. MIXER_CHANNEL=Master # DFLT_STATION: name of the station to turn on if none specified on command line. DFLT_STATION=r4