Airplay sync / editing /etc/init.d/shairport

So, I had this issue with v1.3, but I have upgraded and my previous settings don’t work.

Audio via airplay is not in sync. To solve this, you have to add a buffer value in shairport

sudo nano /etc/init.d/shairport

enter -b VALUE in the command line

However, I can’t get mine to sync after ages trying. Restarting the device is annoying to say the least. Is there a way to work out what buffer value I need without trial and error?

Shairport is not started via init. But by a line in player_wrk.php

And precisely here (line 310):

$cmd = '/usr/local/bin/shairport -a "'.$hostname.'" -w -B "mpc stop" -o alsa -- -d plughw:'.$device.' > /dev/null 2>&1 &';

Please let me know about your results, it may be interesting to add this options to AirPlay via WebUi!

Ah, that’s interesting. Maybe I edited that line last time…

I will let you know later on. It would be extremely useful if this value could be edited via webui.

Changing values in the below makes no difference for me.


Switched back to 1.3 for now.