
We’re using the HiFiBerry DAC+Zero, a great DAC for a small price. Your system is now in effect streaming to itself, which means it can play in sync with other devices, so let’s add one. If it works well, your local Mopidy setup is complete.

It’ll take a second or two longer to start as Snapcast syncs up, but should otherwise be unaffected. Before proceeding further, make sure that playback still works. Click the group to rename it to something memorable. There will also be a group which represents your local Mopidy setup. You should see a ‘Connected’ message appear. After restarting Mopidy, go to the Iris interface and into Settings. Iris comes with full control over the Snapcast system. Output = audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! filesink location=/tmp/snapfifo Now tell Mopidy to send its audio stream to the Snapcast server instead of the DAC. The client will automatically find the server as its local. We have the client running on your Mopidy system, but nothing to serve music. This automated install sets everything up and will restart the service on reboot. If you get an error here, run this to fix it: Enter the following on the command line to download the client: We start by installing the Snapcast client and server on the same machine (it’s effectively streaming to itself). Snap to itīefore we can add Snapcast clients, our original Mopidy needs to become one itself, so it can keep in sync with everything else. The only downside is a short delay in starting playback as everything syncs up. Any device that’s part of the stream matches the frame’s time code to its own internal clock to ensure playback happens at the same time, providing in-sync audio. This clever piece of open-source software sends out audio in ‘frames’, each one with a time code attached. With Snapcast we can play music anywhere in perfect sync so you can wander around your home without interruption. Sure, playback from our Mopidy setup is great, but you don’t want to be carrying that setup around the house. There are a wide range of digital-audio convertors out there catering for every budget from £12 to thousands – choose wisely. See also: Build a home music system with Raspberry Pi and Make a audio system with Mopidy Tip! Choose your DAC
