Shairport Sync v5.X breaking changes
Describe the bug The latest v5.X of shairport-sync introduced several breaking changes, including a change to the default sample rate from 44100 to 48000 when targeting Airplay2. The streammanager.cpp in the snapserver source code overrides the sampleformat to 44100:16:2 for all AirPlay streams, which causes distorted and poorly timed playback against the latest shairport-sync defaults.
Steps to Reproduce
- Add an AirPlay stream to snap server.conf targeting shairport-sync v5+ built to use the AirPlay 2 protocol
- Send audio to the AirPlay stream
- In my case, I hear only loud static except at the lowest volumes where I can vaguely hear the audio source behind the static but playing slower than it should (which is why I suspect the sample rate mismatch is the problem here)
Environment details
- OS: Dietpi (Debian Bookworm)
- Snapcast version 0.31.0
- Installed from Dietpi tools
I didn't notice anything that seemed useful in the logs but am happy to provide logs while recreating the issue if it would be helpful.
In addition, I confirmed that my installation of shairport-sync when run outside of snapserver plays audio correctly with no static, which again makes me suspect that the sample rate override within Snapcast is a likely cause.
More details on the shairport v5 breaking changes are listed in the v5 release notes in that repository.
Thanks for all your work on this project!
Source: snapcast/snapcast