Jay Taylor's notes
back to listing indexbadaix/snapcast: Synchronous multiroom audio player
[web search]
Original source (github.com)
Clipped on: 2024-06-01
Skip to content
Navigation Menu
Audio is captured by the server and routed to the connected clients. Several players can feed audio to the server in parallel and clients can be grouped to play the same audio stream.
One of the most generic ways to use Snapcast is in conjunction with the music player daemon (MPD) or Mopidy.
pulse
Linux
PulseAudio
oboe
Android
Oboe, using OpenSL ES on Android 4.1 and AAudio on 8.1
opensl
Android
OpenSL ES
coreaudio
macOS
Core Audio
wasapi
Windows
Windows Audio Session API
file
All
Write audio to file
`mode=[w
One of the most generic ways to use Snapcast is in conjunction with the music player daemon (MPD) or Mopidy.
fragments=<number of buffers>
(default 4, min 2)
buffer_time=<buffer size [ms]>
(default 100, min 10)server=<PulseAudio server>
- default not-set: use the default serverproperty=<key>=<value>
set PA property, can be used multiple times (default media.role=music
)filename=<filename>
(<filename>
= stdout
, stderr
, null
or a filename)`mode=[w
Parameters are appended to the player name, e.g. --player alsa:buffer_time=100
. Use --player <name>:?
to get a list of available options.
For some audio backends you can configure the PCM device using the -s
or --soundcard
parameter, the device is chosen by index or name. Available PCM devices can be listed with -l
or --list
If you are running MPD and Shairport-sync into a soundcard that only supports 48000 sample rate, you can use --sampleformat <arg>
and the snapclient will resample the audio from shairport-sync, for example, which is 44100 (i.e. --sampleformat 48000:16:*
)