Rivendell Macro Cart.
Note this can be triggered during ordinary playback on rdairplay to connect as required.
RN /home/USERNAME/scripts/stream-connect-script.sh! < script that starts mplayer connected to remote stream (while loop) through 3rd sound card.
SP 10! < Sleep 10 ms
RN /home/USERNAME/scripts/openinput.sh! < script that open channel on Line Input (1st sound card) so 3rd soundcard output connects to it.
SP 10!
PM 3! < Switches Rdairplay to Manual Mode
LB Starting stream in 10 seconds!
SP 2000!
LB Starting stream in 8 seconds!
SP 2000!
LB Starting stream in 6 seconds!
SP 2000!
LB Starting stream in 4 seconds!
SP 2000!
LB Starting stream in 2 seconds!
SP 2000!
LB Remote Stream On!
PS 0 5000! < Stop Machine playing out with a 5 second fadeout
SP 5000!
-------------------------------------------------------------------------------------------------------------------------
stream-connect-script.sh
#!/bin/bash
#Note: Playing sound out of 3rd sound card hw2,0 (1st card hw0,0 and 2nd card hw1,0)
sleep 11
while [ true ]
do
mplayer -ao alsa:device=hw=2,0 http://actual-url-of-stream:8000
sleep 3
done
---------------------------------------------------------------------------------------------------------------------------------
openinput.sh
#!/bin/bash
sleep 13
# open amixer Line input channel to 90% volume, (adjust on audio level of stream.)
amixer -c 0 sset Line,0 90%,90%
Friday, August 1, 2014
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment