Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PulseAudio doesn't create /tmp/snapfifo pipe #1158

Open
mbalasz opened this issue Sep 20, 2023 · 0 comments
Open

PulseAudio doesn't create /tmp/snapfifo pipe #1158

mbalasz opened this issue Sep 20, 2023 · 0 comments

Comments

@mbalasz
Copy link

mbalasz commented Sep 20, 2023

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

  1. 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.
  2. 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
  1. I restarted the pulseaudio systemd service. I also tried rebooting.
  2. 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
  1. 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.
@mbalasz mbalasz changed the title PulseAudio doesn't want to create /tmp/snapfifo pipe PulseAudio doesn't create /tmp/snapfifo pipe Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant