balena-io-experimental / audio

Audio building block for balenaOS, based on pulseaudio.
https://hub.balena.io/blocks
31 stars 13 forks source link

bluetooth: audio stutters and lags when switching bluetooth device that is streaming #15

Open tmigone opened 4 years ago

tmigone commented 4 years ago

Description Choppy audio and it lags when starting playback. Same symptoms as #17.

Affected devices All.

Steps to reproduce Doesn't happen every time, but:

  1. Connect device A via bluetooth (Android phone)
  2. Stream music --> sounds good
  3. Disconnect device A
  4. Connect device B via bluetooth
  5. Stream music --> audio stutters and lags behind

After a while it solves itself (or after stopping and playing a few times). Looks to be related to how PA handles buffered audio in high latency scenarios.

tmigone commented 4 years ago

Solution: unpair all devices when pairing a new one