Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Bluetooth audio latency
#3
I changed the systemd script and added a configuration file to set the buffer size for bluez alsa.
In detail, I added --pcm-buffer-time=<buffer_time> parameter to bluealsa-aplay command line.
At the end, it is enough to change the BUFFERTIME value in /etc/bluealsaaplay.conf.
I had no success in setting values lower than 20000 (20ms) on my Pi1, but it is enough to watch movies with moode as audio sink.

Code:
echo 'BUFFERTIME=20000' >> /etc/bluealsaaplay.conf
sed -i 's|bluealsa-aplay --profile-a2dp|bluealsa-aplay --pcm-buffer-time=${BUFFERTIME} --profile-a2dp|g' /etc/systemd/system/bluealsa-aplay@.service
Reply


Messages In This Thread
Bluetooth audio latency - by travuga - 07-28-2019, 07:51 PM
RE: Bluetooth audio latency - by Tim Curtis - 07-29-2019, 02:19 AM
RE: Bluetooth audio latency - by badbat75 - 07-30-2019, 08:41 AM
RE: Bluetooth audio latency - by Tim Curtis - 07-30-2019, 02:35 PM
RE: Bluetooth audio latency - by TheOldPresbyope - 07-30-2019, 03:48 PM
RE: Bluetooth audio latency - by Tim Curtis - 07-30-2019, 06:26 PM
RE: Bluetooth audio latency - by badbat75 - 08-01-2019, 07:41 AM
RE: Bluetooth audio latency - by TheOldPresbyope - 07-30-2019, 07:25 PM
RE: Bluetooth audio latency - by Norbert - 08-04-2019, 06:09 PM

Forum Jump: