Jay Taylor's notes

back to listing index

badaix/snapcast: Synchronous multiroom audio player

[web search]
Original source (github.com)
Tags: audio multi-room-audio github.com
Clipped on: 2024-05-31

Skip to content

Navigation Menu

Image (Asset 1/111) alt= 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.

Image (Asset 2/111) alt=fragments=<number of buffers> (default 4, min 2) pulse Linux PulseAudio buffer_time=<buffer size [ms]> (default 100, min 10)
server=<PulseAudio server> - default not-set: use the default server
property=<key>=<value> set PA property, can be used multiple times (default media.role=music) 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 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:*)

Test

Image (Asset 3/111) alt=

Footer

© 2024 GitHub, Inc.

Footer navigation