I have an issue with a Raspberry Pi 3B+ and audio over bluetooth, it is configured with PulseAudio and BlueZ to connect my phone on the Pi, it works great but there is minor audio cuts (less than 0.5s) every 2-3 minutes. To be sure that this is a bluetooth or PulseAudio problem I played a local music (aplay cmd) without any problem.
I add "tsched=0" in /etc/pulse/default.pa otherwise the audio is very crackling :
### Automatically load driver modules depending on the hardware available .ifexists module-udev-detect.so load-module module-udev-detect tsched=0 .else ### Use the static hardware detection module (for systems that lack udev support) load-module module-detect .endif
I tried to change some settings in /etc/pulse/daemon.conf like high-priority, realtime-scheduling, resample-method, default-sample-rate and so on but none was noticeable.
But there is something strange: if I kill PulseAudio and restart it (pulseaudio -k then pulseaudio -D) the audio is great for a long time with no chopping until the Pi reboot or after a pause.
Also, I'm not sure if this is related but there is some logs when streaming bluetooth audio:
bluealsa: /usr/bin/bluealsa: Adapter not available: /org/bluez/hci0/dev_9C_2E_A1_CE_CE_F8/fd1 pulseaudio: Configured latency of 200.00 ms is smaller than minimum latency, using minimum instead pulseaudio: Cannot set requested sink latency of 145.01 ms, adjusting to 250.00 ms pulseaudio: Cannot set requested source latency of 87.66 ms, adjusting to 135.29 ms pulseaudio: SBC decoding error (-2) Bluetooth: hci0: Frame reassembly failed (-84) <--- a lot of lines like this
Thanks for reading and I hope you can help me.
It seems that the Raspberry Pi bluetooth module causes this issue, so I have solved this by using only BlueZ (no more PulseAudio) and plug a bluetooth dongle which works a lot better.