snapcast
snapcast copied to clipboard
PulseAudio doesn't create /tmp/snapfifo pipe
Describe the bug
I'm trying to run Snapcast on Raspberry Pi that acts as a Bluetooth receiver. I want to pair my phone with the Pi, stream music via Bluetooth and redirect the stream to Snapcast's /tmp/snapfifo
pipe. The problem is that after following the steps for PulseAudio the stream is never redirected to Snapcast, because PulseAudio doesn't even create the named pipe.
Steps to Reproduce
- First I verified that BT streaming works without Snapcast. I'm using https://github.com/nicokaiser/rpi-audio-receiver to convert RPi to a Bluetooth receiver and it works without any issues when streaming music to the built-in audio card.
- I added the lines from the guideline to my
/etc/pulse/system.pa
...
load-module module-pipe-sink file=/tmp/snapfifo sink_name=Snapcast format=s16le rate=48000
update-sink-proplist Snapcast device.description=Snapcast
- I restarted the pulseaudio systemd service. I also tried rebooting.
- I confirmed with
pactl list sinks
that the PulseAudio sink is created and is set to RUNNING when I start streaming music.
Sink #1
State: RUNNING
Name: Snapcast
Description: Snapcast
Driver: module-pipe-sink.c
Sample Specification: s16le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 15
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: Snapcast.monitor
Latency: 226208 usec, configured 21333 usec
Flags: DECIBEL_VOLUME LATENCY
Properties:
device.string = "/tmp/snapfifo"
device.description = "Snapcast"
device.icon_name = "audio-card"
Formats:
pcm
- I checked if snapcast received the stream to the pipe, but there's nothing. The pipe isn't even created, or if I create it manually it's not being written to by PulseAudio.
Are the guidelines outdated? Or is my PulseAudio setup still somewhat misconfigured?
Environment details
- OS: Raspberry Pi OS Lite 64-bit
- Snapcast version: 0.27
- Installed from a armhf.deb package.