From 1216371f8c06f548f8ade6468b66612f43df1436 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Tue, 27 Jul 2021 20:10:53 -0400 Subject: [PATCH] bluez5: Use libfreeaptx instead of libopenaptx libfreeaptx is a fork of libopenaptx prior to the dubious licensing situation was introduced to the library. As it's fully API compatible, let's use that instead for those who want to use aptX support. The library source is available at https://github.com/iamthehorker/libfreeaptx --- spa/meson.build | 2 +- spa/plugins/bluez5/a2dp-codec-aptx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/meson.build b/spa/meson.build index e13802e94..483536b54 100644 --- a/spa/meson.build +++ b/spa/meson.build @@ -28,7 +28,7 @@ if not get_option('spa-plugins').disabled() summary({'LDAC': ldac_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs') ldac_abr_dep = dependency('ldacBT-abr', required : get_option('bluez5-codec-ldac')) summary({'LDAC ABR': ldac_abr_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs') - aptx_dep = dependency('libopenaptx', version : '< 0.2.1', required : get_option('bluez5-codec-aptx')) + aptx_dep = dependency('libfreeaptx', required : get_option('bluez5-codec-aptx')) summary({'aptX': aptx_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs') fdk_aac_dep = dependency('fdk-aac', required : get_option('bluez5-codec-aac')) summary({'AAC': fdk_aac_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs') diff --git a/spa/plugins/bluez5/a2dp-codec-aptx.c b/spa/plugins/bluez5/a2dp-codec-aptx.c index db3a43a9d..cb01ede1e 100644 --- a/spa/plugins/bluez5/a2dp-codec-aptx.c +++ b/spa/plugins/bluez5/a2dp-codec-aptx.c @@ -29,7 +29,7 @@ #include -#include +#include #include "defs.h" #include "rtp.h"