Snapcast-Server and Client on same device #812
Replies: 8 comments 9 replies
-
Please explain more on how you will use it to sync the same device. |
Beta Was this translation helpful? Give feedback.
-
Hello rern, My Setup: If i play music on raspi3 all three rooms have a delay to the livingroom. Is it possible to pipe the mpd output (or whatever is used) on the raspi3 only to the snapcast server, enable the snapcast client and pipe the output to alsa ? So all devices can play in sync I know this is far away from bit-perfect. ;-) groo |
Beta Was this translation helpful? Give feedback.
-
To adjust the delay: |
Beta Was this translation helpful? Give feedback.
-
Hello rern, i am sorry, my explanation was bad. I think this is the actual state. audio player software -> snapfifo -> snapserver -> network -> remote snapclient -> alsa | - > local alsa if server and client enabeld on the local device all can play in sync audio player software -> snapfifo -> snapserver -> network -> remote snapclient -> alsa | - > local socket -> local snapclient -> local alsa but in this version it is not possible to enable snap server and client at the same time groo |
Beta Was this translation helpful? Give feedback.
-
Please try the UPDATE branch:
|
Beta Was this translation helpful? Give feedback.
-
Hello rern, if snapclient and snapserver run on the same device we must ensure that in the mpd.conf is only "Snapcast" the audio output. But rAudio-1 do some magic and recreate the mpd. config ;-) And thank you for the fast response and coding :-) groo |
Beta Was this translation helpful? Give feedback.
-
Hello rern and Elliot, i found a solution for this issue. First set snapclient latency to 0. (or whatever you need for your hardware) #audio_output { # name "HiFiBerry DAC+" # device "hw:0,0" # type "alsa" # auto_resample "no" # auto_format "no" # mixer_type "hardware" # mixer_control "Digital" # mixer_device "hw:0" #} audio_output { name "Snapcast" type "fifo" path "/tmp/snapfifo" format "48000:16:2" mixer_type "software" } As you see i disable the hardware audio output. Then (nasty cheat) do a chattr +i /etc/mpd.conf reboot and you have sync multiroom on your pi with snapcast server/client. Don´t forget after chattr +i you must do chattr -i if you want to edit mpd.conf groo |
Beta Was this translation helpful? Give feedback.
-
Hello Rern i tried to use snapclient and snapserver at the same time with the last update here is the mpd config: mpd 0.23.9-2 cat /etc/mpd.confbind_to_address "0.0.0.0" input { resampler { audio_output { mpd.service- Music Player Daemon Nov 06 00:14:57 rAudio3 systemd[1]: Starting Music Player Daemon... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello rern,
thank you for the great job.
For Multiroom it will be a nice to have to enable the snapcast-server and client on the same device.
So we can get in sync.
groo
Beta Was this translation helpful? Give feedback.
All reactions