nicokaiser / rpi-audio-receiver

Raspberry Pi Audio Receiver with Bluetooth A2DP, AirPlay 2, and Spotify Connect
MIT License
1.38k stars 148 forks source link

Also device settings #139

Closed pla10 closed 2 years ago

pla10 commented 2 years ago

How should I do to set the wanted alsa device to output the audio received from Bluetooth? In my case I would like to set it to a loopback, since that's what I use for snapcast (already works with spotify connect and airplay)

nicokaiser commented 2 years ago

You need to configure PulseAudio to use a specific ALSA output device. I don't really know how this works, but maybe this helps: https://wiki.archlinux.org/title/PulseAudio/Examples#Set_the_default_output_sink

BTW, Spotify Connect and AirPlay should also send audio through PulseAudio (not ALSA directly) to avoid concurrency and locking problems.