You are not logged in.

#1 2022-04-18 17:28:46

the_jest
Member
Registered: 2022-02-07
Posts: 38

PulseAudio -> Snapcast over the network?

(I wasn't sure if this belonged here, or in the "Network" forum, or in the "Multimedia" forum; I think it's mainly a PA question but the few other Snap questions were here. Apologies if this is wrong.)

I am running Snapcast on a machine on my local network; both the snapserver and Mopidy are running on this machine, and there are several Raspberry Pi's on the network that are running snapclients. This all works correctly; audio played through Mopidy goes to the snapclients, and is played by the Pi's.

I have an Arch desktop (obviously on the same network), which is running PulseAudio; there are several audio outputs attached to the Arch machine, and I can use the PulseAudio Volume Control to select which one is used for any particular application. I would like to have a "Snapcast" output, so that I can direct audio into the snapserver in the same way, i.e. playing over Snapcast from a music player on the Arch machine (instead of Mopidy on the snapserver machine), or from a browser, or whatever.

I've read the Snapcast docs, and it's clear that Snapcast can receive a lot of different sources; it's also clear that PA can send audio over the network in various ways. So this seems to be entirely possible, but I'm confused about how to do it, perhaps partly because I'm confused about the differences between sinks and sources, and servers and clients, in these various systems.

Can someone give me a pointer to how I can get this set up?

Offline

#2 2022-04-18 17:39:38

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: PulseAudio -> Snapcast over the network?

One option is listed here:
https://github.com/badaix/snapcast/blob … pulseaudio

Last edited by progandy (2022-04-18 17:51:23)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#3 2022-04-18 17:44:50

the_jest
Member
Registered: 2022-02-07
Posts: 38

Re: PulseAudio -> Snapcast over the network?

Right, but that's for running PA and the snapserver on the same machine. My confusion is about directing the PA output to the snapserver over the network.

Offline

#4 2022-04-18 17:47:20

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: PulseAudio -> Snapcast over the network?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2022-04-18 17:51:46

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: PulseAudio -> Snapcast over the network?

the_jest wrote:

Right, but that's for running PA and the snapserver on the same machine. My confusion is about directing the PA output to the snapserver over the network.

You'd have to replace the fifo, maybe with netcat on the server and module-simple-protocol-tcp for your pulseaudio client similar to https://kaytat.com/blog/?page_id=301


You might also be able to run an airplay server together with snapcast and stream to that.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

Board footer

Powered by FluxBB