lukasjapan / bt-speaker

A simple Bluetooth Speaker Daemon for the Raspberry Pi 3
GNU General Public License v3.0
493 stars 94 forks source link

Play Soundeffects while Bluetoothmusic plays #74

Open m4rten opened 4 years ago

m4rten commented 4 years ago

Hi,

Thanks for your great effort, streaming bluetooth music from a mobile works great with really good sound quality!

Now i want the raspberry to play sounds when some events happen at a gpio pin. I wanted to use the "aplay home/music/... .wav" command for that. But it says that the sound device is currently in use. it is blocked from the music-stream. does anyone have a work around or any idea how i can play soundfiles while the bluetooth stream is running ? a alternative way is to play it via another usb soundcard. is there a command in the alsa program that could do the job ?

I am very thankful for any help :)

m4rten commented 4 years ago

:(

patrickjquinn commented 4 years ago

I actually want to point this out as a wider issue, is there a way to focus aplay when anther device calls it? seems it can play synchronously and the bt speaker service locks the device. I've got an airplay service running along side a mopidy instance and having bt_speaker running locks out the other services.