BLUETOOTH AND SECOND INSTANCE PROBLEM If I use this at the command line
root@squeezeplug:~# squeezelite -m ab:cd:ef:12:34:56 -n Test -o TEST -r 44100& [1] 3924 I get perfect sound on the speaker ----------------------------------- A user (mpa) at Raspi forum suggested the following script: If I use this, when the second instance starts, the speaker just produces a continuous crackle sound Any suggestions? Using 0.9beta8 > > > #!/bin/bash > pid=0 > address="00:15:71:14:E6:22" > squeezelite_started=false > while (sleep 1) > do > if [[ $squeezelite_started == false ]] ; then > connected=$(hcitool con) > /dev/null > if [[ $connected =~ .*${address}.* ]] ; then > squeezelite -m ab:cd:ef:12:34:56 -n Test -o TEST -r 44100& > echo $! > /tmp/TEST_squeezelite.pid > squeezelite_started=true > echo $address connected started Squeezelite > fi > fi > > if [[ $squeezelite_started == true ]] ; then > connected=$(hcitool con) > /dev/null > if [[ ! $connected =~ .*${address}.* ]] ; then > pid=$(cat /tmp/TEST_squeezelite.pid) > kill -9 $pid > rm /tmp/TEST_squeezelite.pid > squeezelite_started=false > echo $address disconnected stopped Squeezelite > fi > fi > done > > > ------------------------------------------------------------------------ castalla's Profile: http://forums.slimdevices.com/member.php?userid=15624 View this thread: http://forums.slimdevices.com/showthread.php?t=97046 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix