12-22-2022, 07:34 PM
(12-22-2022, 04:50 PM)Tim Curtis Wrote: Looks like the conf file shipped with Shairport-sync 4.1.1 has the parameter name below also as part of a comment line further down in the metadata section of the file.Thanks for the explanation Tim
Code:audio_backend_buffer_desired_length_in_seconds
In our image builder the stock conf files are manipulated via SED commands to set parameters to their default values for moOde.
Below is result of the SED command that sets the parameter in question.
Code:pi@moode:~ $ sed -e 's/\/\/.*\(audio_backend_buffer_desired_length_in_seconds\)/\1/' ./shairport-sync.conf | grep audio_backend_buffer_desired_length_in_seconds
audio_backend_buffer_desired_length_in_seconds = 0.2; // If set too small, buffer underflow occurs on low-powered machines.
audio_backend_buffer_desired_length_in_seconds' (default 0.2 seconds) ahead of time.
It correctly modifies the first occurrence of the parameter but it also processes the unexpected second occurrence and leaves it in a broken state with a trailing single quote. This causes shairport-sync to abort with a config file syntax error.
An immediate fix is to run the command below which deletes the comment line containing the second occurrence of the param. Restart Airplay afterwords.
Code:sudo sed -i "/audio_backend_buffer_desired_length_in_seconds'/d" /etc/shairport-sync.conf
I'll prolly generate bugfix release 8.2.4 b4 end of year.