Thank you for your donation!


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


Instruction Guide Moode 8: Add bluetooth codec support for AAC, aptX & aptX-HD to bluez-alsa package
#23
(05-26-2023, 01:53 PM)Tim Curtis Wrote:
(05-26-2023, 01:36 PM)TheOldPresbyope Wrote: I was interested enough to trace the origin of the libopenaptx package in Debian / Raspberry Pi OS. It turns out not to be the code in Arkq's  repo. Instead, it's code developed by GitHub user pali https://github.com/pali/libopenaptx (Full disclosure: I looked only at the file headers).
...
Regards,
Kent

I've reviewed that as well.

I think I'll make a test release so we can see what works and what doesn't. 

Isn't there a bluez-alsa command that shows which codec is being used?

@jenzd may well know a better command. Here's one I gleaned from the bluez-alsa issues long ago which queries the dbus

gdbus call --system -d org.bluealsa -o /org/bluealsa -m org.bluealsa.Manager1.GetPCMs

So, for example, with a stock moOde player paired and connected to a JBL Flip2 BT speaker, I get

Code:
pi@moode:~ $ gdbus call --system -d org.bluealsa -o /org/bluealsa -m org.bluealsa.Manager1.GetPCMs
({objectpath '/org/bluealsa/hci0/dev_00_1D_DF_AA_27_37/a2dpsrc/sink': {'Device': <objectpath '/org/bluez/hci0/dev_00_1D_DF_AA_27_37'>, 'Transport': <'A2DP-source'>, 'Mode': <'sink'>, 'Format': <uint16 33296>, 'Channels': <byte 0x02>, 'Sampling': <uint32 48000>, 'Codec': <'SBC'>, 'Delay': <uint16 150>, 'SoftVolume': <true>, 'Volume': <uint16 32639>}},)

whereas, with the same player connected as BT speaker for my iPad

Code:
pi@moode:~ $ gdbus call --system -d org.bluealsa -o /org/bluealsa -m org.bluealsa.Manager1.GetPCMs
({objectpath '/org/bluealsa/hci0/dev_D0_D2_B0_DB_13_78/a2dpsnk/source': {'Device': <objectpath '/org/bluez/hci0/dev_D0_D2_B0_DB_13_78'>, 'Transport': <'A2DP-sink'>, 'Mode': <'source'>, 'Format': <uint16 33296>, 'Channels': <byte 0x02>, 'Sampling': <uint32 44100>, 'Codec': <'SBC'>, 'Delay': <uint16 150>, 'SoftVolume': <true>, 'Volume': <uint16 1799>}},)


In both cases here the SBC codec is being used.

As Jens said, bluealsa --help tells us which codecs are available and in this stock moOde player they are just

Code:
pi@moode:~ $ bluealsa --help

Available BT profiles:
 - a2dp-source    Advanced Audio Source (LDAC, SBC)
 - a2dp-sink    Advanced Audio Sink (SBC)
...

Since this is stock moOde, bluealsa-cli isn't present.

Regards,
Kent
Reply


Messages In This Thread
RE: Moode 8: Add bluetooth codec support for AAC, aptX & aptX-HD to bluez-alsa package - by TheOldPresbyope - 05-26-2023, 05:50 PM

Forum Jump: