[pulseaudio-discuss] [PATCH 3/4] Add A2DP aptX, aptX HD codecs support
Huang-Huang Bao
eh5 at sokka.cn
Thu Dec 13 16:16:24 UTC 2018
People want using aptx(HD) early.
So I decide to use ffmpeg.
90 samples are only 90/44100 s = 2ms , which is ignorable.
On 12/13/18 11:43 PM, Pali Rohár wrote:
> On Thursday 13 December 2018 19:43:38 EHfive wrote:
>> diff --git a/src/modules/bluetooth/a2dp/a2dp-codecs.h b/src/modules/bluetooth/a2dp/a2dp-codecs.h
>> index aefafb635..a6f054aec 100644
>> --- a/src/modules/bluetooth/a2dp/a2dp-codecs.h
>> +++ b/src/modules/bluetooth/a2dp/a2dp-codecs.h
>> @@ -141,6 +141,9 @@
>> #define APTX_SAMPLING_FREQ_44100 0x02
>> #define APTX_SAMPLING_FREQ_48000 0x01
>>
>> +#define APTX_HD_VENDOR_ID 0x000000D7
> This ID is assigned to Qualcomm Technologies, Inc. Not for aptX HD
> codec, or aptX HD vendor.
>
>> +#define APTX_HD_CODEC_ID 0x0024
>> +
>> #define LDAC_VENDOR_ID 0x0000012d
>> #define LDAC_CODEC_ID 0x00aa
>>
> I wrote alternative implementation of aptX codec support for pulseaudio.
> It does not use big ffmpeg, but rather small libopenaptx library from
> https://github.com/pali/libopenaptx Patches are already in mailing list...
>
> Anyway, aptX decoder (both hd and non-hd variants) in ffmpeg has delay
> of about 90 samples. I have already some idea how to fix... and will try
> to implement it in libopenaptx. (Recompiling ffmpeg just for testing and
> debugging one codec is big pain; small library is better for this).
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20181214/14b8f6d7/attachment.sig>
More information about the pulseaudio-discuss
mailing list