Triode, you are famous now. That cheeky german sausage Soundcheck has announced Squeezelite to the world in Audio Asylum and even deigned to produce a blog entry in his blog, seems strange why he doesn't link to this thread though.
http://www.audioasylum.com/cgi/vt.mpl?f=pcaudio&m=119475 http://soundcheck-audio.blogspot.co.uk/2013/01/squeeze-me-lite.html#more Apart from soundcheck thanking you for bringing the squeezeslave project back to life he gives some advice on how to compile in ubunto which may be useful to some folk :- Appendix 1: Manual compilation on Ubuntu/Debian based systems There are all kind of squeezelite binaries available. But you might be forced to compile it on your own. I prepared a little HowTo. The process is pretty straight forward: 1. Open a terminal 2. First you have install the required development packages: sudo apt-get -y install build-essential git wget libasound2-dev libmad0-dev libflac-dev libogg-dev libvorbis-dev libfaad-dev libmpg123-dev 3. Then you download the sources: cd ~ git clone https://code.google.com/p/squeezelite/ 4. Now you compile the binaries cd ./squeezelite make clean make 5. If everything worked out well, you'll find a squeezelite binary in the folder. To check it out, type: ./squeezelite -h If it prints all commandline options, it's working. 6. Now copy the binary to /usr/local/bin and make it executable: sudo cp ./squeezelite /usr/local/bin/squeezelite sudo chmod 777 /usr/local/bin/squeezelite Here we go. ####################################################################### Appendix 2: A wrapper script - called "squeeze". To make life easier, it's good to start the squeezelite binary with all its options by a wrapper script. Open gedit and copy below into the editor. cd ~ gedit squeeze You need to fill in appropriate parameters in the paramter section below and save it. #!/bin/sh # # # squeezlite wrapper script # written by Klaus Schulz # # Rev 1: 01/25/2013 # ###PARAMETERS############################################################################################## LOCALETHERNETPORT=ethX ## run "ifconfig" to find out the active ethernet port, e.g. eth0, wlan0 or similar SERVERIP="127.0.0.1" ## This IP is used if squeezelite runs on the server, otherwise put "#" in front of line #SERVERIP="XXX.XXX.XXX.XXX" ## server IP on remote client, run ifconfig to find out, if run on server put "#" in front of line PLAYERNAME=sl1 ## choose whatever name you want to show up on the controller - no spaces! MAXSAMPLERATE=96000 ## This sets maximum samplerate as supported by the local DAC - up 2 384000 ALSABUFFER=128 ## Alsa outputbuffer in milliseconds PERIODS=2 ## Alsa buffer devided into number of periods BIT=24_3 ## bit depth of output 16, 32, 24_3 = 3 bytes, 24 = 4 bytes STREAMINGBUFFER=256 ## streaming buffer in kilobytes MMAP=0 ## memory management 0/1 AUDIOIF="hw:CARD=USB,DEV=0" ## audiointerface as listed by squeezelite -l , you can also use e.g. hw:0,0/plughw:0,0, check: "aplay -l" RTPRIO=98 ## realtimepriority of squeezelite ###MAIN##################################################################################################### BIN="$(which squeezelite)" [ -f "$BIN" ] || { echo "squeezelite binary not found" ; exit 1 ; } ; LOCALMAC="$(cat /sys/class/net/$LOCALETHERNETPORT/address)" [ "$(ps -edf | grep -v grep | grep squeezelite)" != "" ] && killall squeezelite chrt -f $RTPRIO $BIN -m "$LOCALMAC" -o "$AUDIOIF" -n "$PLAYERNAME" -a "$ALSABUFFER:$PERIODS:$BIT:$MMAP" -b "$STREAMINGBUFFER:$STREAMINGBUFFER" -r $MAXSAMPLERATE -z $SERVERIP exit 0 ############################################################################################################ Then you copy the script to /usr/local/bin sudo cp squeeze /usr/local/bin and make it executable sudo chmod 777 /usr/local/bin/squeeze Now you can start it: squeeze Type ps -edf | grep squeeze You should see the squeezelite process printed. Now check your prefered remote, if you can find the new player id listed. Done. For automatic start at boot you might add ( above "exit" ) to /etc/rc.local sudo gedit /etc/rc.local add /usr/local/bin/squeeze save and reboot. ####END ##################################################################### ------------------------------------------------------------------------ SBGK's Profile: http://forums.slimdevices.com/member.php?userid=52003 View this thread: http://forums.slimdevices.com/showthread.php?t=97046 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
