Thank you for your donation!


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


ldac server support via pipewire
#1
Hi. It would be great to send output from moode via ldac bluetooth to an ldac receiver, in my case a topping G5 dac/hp amp. My impression is that pipewire provides ldac encoding, is compatible with alsa and is free software. Is the feasible for a future release?
Reply
#2
I think the LDAC encoder is Open Source and included in Debian but the decoder is still proprietary. You wouldn't need Pipewire since we may be able to just add encoder lib it to our Bluetooth package.

I'll add to the TODO list.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(06-22-2023, 06:26 PM)Tim Curtis Wrote: I think the LDAC encoder is Open Source and included in Debian but the decoder is still proprietary. You wouldn't need Pipewire since we may be able to just add encoder lib it to our Bluetooth package.

I'll add to the TODO list.

Thanks for considering it.
Reply
#4
(06-24-2023, 05:14 PM)phorize Wrote:
(06-22-2023, 06:26 PM)Tim Curtis Wrote: I think the LDAC encoder is Open Source and included in Debian but the decoder is still proprietary. You wouldn't need Pipewire since we may be able to just add encoder lib it to our Bluetooth package.

I'll add to the TODO list.

Thanks for considering it.

LDAC bluetooth transmission (encode only) should actually be working out of the box since version 8.3.3 of Moode. LDAC support was already built into the supplied bluez-alsa package since Moode 8.3.0, but not activated in the configuration file of the service /etc/systemd/system/bluealsa.service. With version 8.3.3 the necessary switch "-c ldac" was added here (together with activation switches for aptX and aptX-HD):

Code:
ExecStart=/usr/bin/bluealsa -p a2dp-source -p a2dp-sink -c aptx -c aptx-hd -c ldac

You can easily check which codecs are available and which one was actually selected for a connected device with the commands:

Code:
# check which codecs are available
bluealsa-cli status

# check which codec was selected for the connected bluetooth device
bluealsa-cli --verbose list-pcms

Just give it a try.

Best regards
Jens
Reply
#5
I see that the libs are present :-)


Code:
pi@moode:~ $ dpkg -l | grep ldac
ii  libldacbt-abr2:arm64                 2.0.2.3+git20200429+ed310a0-4    arm64        LDAC Bluetooth ABR library (shared library)
ii  libldacbt-enc2:arm64                 2.0.2.3+git20200429+ed310a0-4    arm64        LDAC Bluetooth encoder library (shared library)

I'll add en entry to the release notes for upcoming 8.3.4
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#6
$ bluealsa-cli --verbose list-pcms
/org/bluealsa/hci0/dev_00_02_5B_00_FF_00/a2dpsrc/sink
Device: /org/bluez/hci0/dev_00_02_5B_00_FF_00
Sequence: 0
Transport: A2DP-source
Mode: sink
Running: false
Format: S32_LE
Channels: 2
Sampling: 96000 Hz
Available codecs: SBC:ffff0235 aptX:4f000000010032 aptX-HD:d700000024003200000000 LDAC:2d010000aa003c07
Selected codec: LDAC:2d010000aa000401
Delay: 200.0 ms
SoftVolume: true
Volume: L: 127 R: 127
Muted: L: false R: false


You have no idea how happy the above terminal output makes meSmile
Reply


Forum Jump: