Ask / Submit

LDAC support for better audio

asked 2019-03-18 23:31:31 +0300

soloist gravatar image

Sony has been releasing LDAC codec to AOSP. Would it be possible to add support for this?

edit retag flag offensive close delete


Actually implementing LDAC support requires two things: 1) Bluez must have support for multiple BT audio codecs, and the ability to choose/switch the active codec. Bluez patches have been merged, so they're included in the upstream git tree, but they're not yet in any official released bluez version. 2) Pulseaudio BT support must be able to use the bluez multi audio codec support aswell, and obviously be able to use the LDAC library from AOSP. Those pulseaudio patches are still under development, and there has been multiple versions posted to pulseaudio mailing list by Pali, who's trying to get the patches working properly and upstreamed.

So currently (as of March 2019) to test LDAC support you need to compile latest version of bluez from git, and also apply the work-in-progress pulseaudio patches and build a custom version of pulseaudio aswell.

pasikarkkainen ( 2019-03-21 20:51:03 +0300 )edit

3 Answers

Sort by » oldest newest most voted

answered 2019-03-19 00:12:25 +0300

r0kk3rz gravatar image

updated 2019-03-19 01:01:17 +0300

Well spotted!

There might be some issues around the patent encumbered codecs being included in the same package, but lets see if I can get the required things packaged and built and go from there.

EDIT: Ok so the libldac library was rather easy, but I think the Pulse Audio module that adds the required glue might be a bit trickier due to their massive reworking of the BT module and relicensing... I hope they are planning on getting their work upstreamed into PA proper instead of continually maintaining a fork of the BT module

edit flag offensive delete publish link more


Good work! Thanks for looking into this.

soloist ( 2019-03-19 08:18:08 +0300 )edit

answered 2019-03-19 06:41:08 +0300

Oleg gravatar image

no sense. LDAC and others, it's marketing. I'm sorry, it's in Russian, but with images

edit flag offensive delete publish link more


Yup, the ideal would be plain stereo PCM (16 bits, sample rate at least above 40kHz) for connection that can sustain 1.2Mbps, FLAC for everything else (more channels or lower bandwidth), and OPUS for lossy (even lower bandwitdh). ( ^- OPUS currently beats everything at common bandwidth. Except for some very limited low bandwith where the open source Codec2 is the one beating the crap of everything else).

The problem is: no hardware manufacturer is even going to build it, every body is in the "license shitty commercial patent-encumbered codecs".

Your earphone are going to be stuck a AptX, LDAC, etc. So you're stuck with needing to implement those on your smartphone.

DrYak ( 2019-03-19 11:51:57 +0300 )edit

answered 2019-03-19 07:16:33 +0300

xbt123ufo gravatar image

I think I really need ldac. The Android of xa2 plus owns excellent Bluetooth quality which is important to me, but I lost it after flashing to sailfish. If sailfish x can add ldac in the future, I will enjoy it very much.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools



Asked: 2019-03-18 23:31:31 +0300

Seen: 226 times

Last updated: Mar 19