Shairport

Request a package to be made here. Make sure you have searched before requesting.

Re: Shairport

Postby kmihelich » Sat Apr 16, 2011 1:00 am

I believe there is still some level of transcoding, as the mp3s are changed to pcm wav format for the soundcard. Without a real FPU, the plugs just suck at those operations.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Shairport

Postby LaTristesse » Sun Apr 17, 2011 9:29 pm

There are more people with the same issue, even running debian as os: https://github.com/albertz/shairport/is ... nt-1018012
LaTristesse
 
Posts: 35
Joined: Mon Jul 26, 2010 8:57 pm

Re: Shairport

Postby pepedog » Thu May 05, 2011 11:01 am

An update, I have been trying Shairport with 2 usb sound adapters that (when shairport starts streaming) tells me that they are both only hardware available at 48000 Hz, but streams are at 44100.

A while ago I bought a Samsung (primarily for bluetooth) speaker YA-SBR510, only today I noticed on selection there is, along with aux, optical and bluetooth, a usb light. I plugged it into dockstar and started playing from itunes, there was no messeges saying it was switching rates, and all played fine at correct rate with no underruns.

Couldn't get fancy resampling working in Shairport.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Shairport

Postby xoxox » Fri Aug 26, 2011 9:48 am

How do i run the shairport perl script as as daemon in the background?
I've followed the instructions from pepedog, but the script stays in the foreground.
Currently i'm using screen as a workaround, but that's not very comfortable.
xoxox
 
Posts: 8
Joined: Sun Jul 31, 2011 8:41 am

Re: Shairport

Postby Skorfulose » Fri Aug 26, 2011 10:15 am

Hi xoxox!

Are you using a Debian? Copy the file shairport.init.sample from source to /etc/init.d/shairport

To activate the script at boot time run $this->bbcode_second_pass_code('', 'update-rc.d shairport defaults')
Call $this->bbcode_second_pass_code('', '/etc/init.d/shairport start') or simply reboot and you're done. Shairport will run in background at system startup in the future
Skorfulose
 
Posts: 1
Joined: Fri Apr 15, 2011 12:24 pm

Re: Shairport

Postby xoxox » Fri Aug 26, 2011 10:42 am

Hi,
no, i don't use Debian :-)

I know the sample script, but it doesn't work under Archlinux.
I've found somewhere an upstart script for Ubuntu, but nothing for Archlinux.
xoxox
 
Posts: 8
Joined: Sun Jul 31, 2011 8:41 am

Re: Shairport

Postby pepedog » Fri Aug 26, 2011 11:53 am

/usr/share/pacman/rc-script.proto has a sample
cp /usr/share/pacman/rc-script.proto /etc/rc.d/shairport
Edit /etc/rc.d/shairport then put shaiport in /etc/rc.conf DAEMONS section ()
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Shairport

Postby xoxox » Fri Sep 02, 2011 8:56 am

Didn't work very well. I can start the perl script, but it stays in the foreground.

$this->bbcode_second_pass_code('', '[root@sheeva ~]# /etc/rc.d/shairport start
:: Starting shairport.pl daemon [BUSY]
Established under name '0035367AF091@ShairPort 17524 on Sheeva'')
xoxox
 
Posts: 8
Joined: Sun Jul 31, 2011 8:41 am

Re: Shairport

Postby pepedog » Fri Sep 02, 2011 9:38 am

What happens if you type shairport.pl --help
I thought -d after did this, has it changed? I don't have it installed to try.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Shairport

Postby xoxox » Fri Sep 02, 2011 2:26 pm

$this->bbcode_second_pass_code('', '[root@sheeva ~]# /usr/local/bin/shairport.pl --help
ShairPort version 0.05 - Airport Express emulator
Usage:
shairport.pl [OPTION...]

Options:
-a, --apname=AirPort Sets AirPort name
-p, --password=secret Sets password
-o, --server_port=5002 Sets Port for Avahi/dns-sd
-i, --pipe=pipepath Sets the path to a named pipe for output
--ao_driver=driver Sets the ao driver (optional)
--ao_devicename=devicename Sets the ao device name (optional)
--ao_deviceid=id Sets the ao device id (optional)
-s --squeezebox Enables local Squeezebox Server integration
-c --cliport=port Sets the SBS CLI port
-m --mac=address Sets the SB target device
-l --volume=level Sets the SB volume level (in %)
-d Daemon mode
-w --writepid=path Write PID to this location
-v --verbose Print debugging messages
-h, --help This help')

With "-d" the behaviour is the same.
It seems that den perl script itself goes into the background, but the avahi-daemon stays in the foreground.
xoxox
 
Posts: 8
Joined: Sun Jul 31, 2011 8:41 am

PreviousNext

Return to Package Requests

Who is online

Users browsing this forum: No registered users and 14 guests