Skip to content

Instantly share code, notes, and snippets.

@ivesdebruycker
Last active November 8, 2020 14:51
Show Gist options
  • Save ivesdebruycker/3ac8b4f641d3a46745fa6ff2464f99f7 to your computer and use it in GitHub Desktop.
Save ivesdebruycker/3ac8b4f641d3a46745fa6ff2464f99f7 to your computer and use it in GitHub Desktop.
Snapcast on Volumio - client & server install

Snapcast on Volumio - client & server install

MPD config

sudo nano /etc/mpd.conf

..
# disable default ALSA output
.. 
audio_output {
    type            "fifo"
    name            "snapfifo"
    path            "/tmp/snapfifo"
    format          "44100:16:2"
}
..

sudo service mpd restart

Snapserver

Install

wget https://github.com/badaix/snapcast/releases/download/v0.15.0/snapserver_0.15.0_armhf.deb
sudo dpkg -i snapserver_0.15.0_armhf.deb

Config

Test snapserver (does NOT use default config, use args): snapserver --sampleformat 44100:16:2

Edit default config: SNAPSERVER_OPTS="-d -s pipe:///tmp/snapfifo?name=Volumio-MPD&mode=read --sampleformat 44100:16:2"

Restart server after changes to config

sudo nano /etc/default/snapserver
sudo service snapserver restart

restart client sudo service snapclient restart

Snapclient

Install

wget https://github.com/badaix/snapcast/releases/download/v0.15.0/snapclient_0.15.0_armhf.deb
sudo dpkg -i snapclient_0.15.0_armhf.deb

Config

List devices: snapclient -l

Test: snapclient -s 23 --latency 100

Edit default config: sudo nano /etc/default/snapclient

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment