11-29-2018, 09:42 PM
I'm new to Moode Audio, using the latest version 4.3 2018-09-27 on a Pi Zero W and it's working nicely.
I noticed the Bluetooth output streaming only supports MPD. I'm using librespot for Spotify Connect and it always outputs to the default ALSA device (i don't use i2s). There's a similar thread regarding Airplay here.
Are there any plans to change this, i.e. customizable output device for each renderer, changing the default ALSA device when a Bluetooth device is connected or some other way to auto-detect the 'active' device?
If I manually run librespot with --device btstream, it works fine. I found the code responsible for starting librespot in playerlib.php. Is there a way to detect that bt streaming is enabled? Maybe in one of the session vars? Running a shell command should work but may be expensive. It would be trivial to change the device string to 'btstream' to make it work. And restart it when a bt device connects/disconnects to switch the output device.
I'm not very familiar with alsa / bluealsa, so not sure if this is the right approach.
I noticed the Bluetooth output streaming only supports MPD. I'm using librespot for Spotify Connect and it always outputs to the default ALSA device (i don't use i2s). There's a similar thread regarding Airplay here.
Are there any plans to change this, i.e. customizable output device for each renderer, changing the default ALSA device when a Bluetooth device is connected or some other way to auto-detect the 'active' device?
If I manually run librespot with --device btstream, it works fine. I found the code responsible for starting librespot in playerlib.php. Is there a way to detect that bt streaming is enabled? Maybe in one of the session vars? Running a shell command should work but may be expensive. It would be trivial to change the device string to 'btstream' to make it work. And restart it when a bt device connects/disconnects to switch the output device.
I'm not very familiar with alsa / bluealsa, so not sure if this is the right approach.