According to bluez-alsa's home page, aptX is supported via the extra library `openaptx` by the same author. It would be nice to have. Please note, it looks like openaptx: * uses reverse-engineered code => possible licence issues; * relies on ffmpeg's aptX support which seems not available in Gentoo's ebuild. An alternative might be Pali's `libopenaptx` (see also Bug 758377), though that's work in progress: <https://github.com/Arkq/bluez-alsa/pull/356>. Reproducible: Always
This looks like it definitely would cause license issues. CCing license team.
Looks like the project is distributed under the MIT license. If the algorithm is affected by software patents, then it cannot be distributed in binary form (at least not in countries where it is patented). Commercial use may also be problematic. IIUC distribution of source code shouldn't be a problem, so the only thing needed would be a bindist restriction. Disclaimer: I am not a lawyer. This is not legal advice.
Tried with this ebuild: ``` EAPI=7 inherit cmake-utils DESCRIPTION="reverse-engineered apt-X audio codec" HOMEPAGE="https://github.com/Arkq/openaptx" if [[ ${PV} == "9999" ]] ; then inherit git-r3 EGIT_REPO_URI="https://github.com/Arkq/${PN}" else SRC_URI="https://github.com/Arkq/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64 ~x86" fi LICENSE="MIT" SLOT="0" ``` And got aptX working only when built with `MYCMAKEARGS="-DWITH_FFMPEG=ON" emerge openaptx -v1` (and `EXTRA_ECONF="--enable-aptx" emerge -v1 media-sound/bluez-alsa`). Without `-DWITH_FFMPEG=ON` I got a loud annoying noise instead of sound. Tried with libopenaptx and `EXTRA_ECONF="--with-libopenaptx"` also, but aptX wasn't detected at all.
openaptx is in Gentoo tree now
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07fea7a07c766c5ad034200209cd00f48f562450 commit 07fea7a07c766c5ad034200209cd00f48f562450 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2021-05-24 17:39:52 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2021-05-24 17:42:47 +0000 media-sound/bluez-alsa: Added aptx support Bug: https://bugs.gentoo.org/762268 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> media-sound/bluez-alsa/bluez-alsa-9999.ebuild | 7 +++++-- media-sound/bluez-alsa/metadata.xml | 1 + 2 files changed, 6 insertions(+), 2 deletions(-)
This is in the live ebuild for now because we only have media-libs/libopenaptx and support for that lib is not in the 3.0.0 release. Once bluez-alsa rolls a new release, aptx support will be available there.
commit c4967e60c5f845596d70a690dfdda5261de55ba4 Author: Lars Wendler <polynomial-c@gentoo.org> Date: Wed Jun 9 09:32:03 2021 media-sound/bluez-alsa: Bump to version 3.1.0 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>