sbp wrote: 
> For me the ranges is saved correctly if I add 44100-768000 in the max
> sample rate box in the UI and press The “save” button. 
> Then checking the Squeezelite command string   'more>'
> (http://192.168.0.216/cgi-bin/squeezelite.cgi?#) I have the correct
> string -o hw:CARD=sndrpihifiberry -a 80:4::1: -r 44100-768000

The config file is correct.   I believe its start-stop-daemon from
busybox stripping dashes and commas.

Here is my "metasolution" to the pluggable USB problem.   It will work
with the -C 5 and all the above.  It is a single file (but nearly 300
lines).  It suddenly started working using that method, but I was nearly
done with this.  There is a switch to completely kill squeezelite as I
was doing before.  I can now plug in a second DAC (such as with
headphones) into my Pi and the song is paused on the main DAC and starts
playing on the new one.  Pull the new one out and it starts back on the
old one.  When the DAC goes off it stays paused.  Moving the stream from
one DAC to another restarts the playlist, but doesn't if you just turn
it off.  Shouldn't be any remote code execution exploits but dug too
deep on the security.  You can blacklist an audio device(s) so it
doesn't get selected when you disconnect your DAC (use the short names
not the full names, but it does show the full name in the log output). 
Also fills in MAX_RATES in the config file and keeps it updated.  I was
going to do bit depth options too but there was some question on the
outputs (32b LE wasn't on the list, only BE - typo?) and I figured most
people leave that blank anyway.  It could be easily added though to just
update the config as devices are inserted.

'View on Pastebin' (https://hastebin.com/nexufateho)
'Download It' (http://eddon.systems/Directory.php/Download/PCP)

Anyone wanting to dig in to shell scripting should check it out for
ideas.  I kept it pretty basic since I'm not familiar with busybox ash
and normally use zsh or bash.


------------------------------------------------------------------------
uudruid74's Profile: http://forums.slimdevices.com/member.php?userid=72371
View this thread: http://forums.slimdevices.com/showthread.php?t=113661

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to