balena-io-experimental / balena-sound

Build a single or multi-room streamer for an existing audio device using a Raspberry Pi! Supports Bluetooth, Airplay and Spotify Connect
https://balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/
MIT License
2.45k stars 432 forks source link

multiroom: autoannouncing a new master doesn't work if the master has an input source #269

Open tmigone opened 4 years ago

tmigone commented 4 years ago

Describe the problem

If the device in question has an input source via soundcard (usb for example), the balena-sound.input sink will never leave the RUNNING state, even if there is no audio coming in through the sound card.

This means the play event will not get fired if you start streaming from another audio source. This could lead to devices completely missing who's the current master.

To Reproduce Steps to reproduce the behaviour:

  1. Run multi-room on two devices at least, with one of them with a soundcard that has audio input (device A)
  2. Start streaming with device B
  3. Start steaming with device A

Both devices will be tuned to device B where they should be tuned to device A.

jellyfish-bot commented 4 years ago

[robertgzr] This issue has attached support thread https://jel.ly.fish/ff6e8005-45ab-47d3-acd4-f0834d453a15