RepositoryCPLPoland
arkq

arkq/openaptx

Reverse-engineered apt-X audio codec

166stars
22forks
2issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: aptx

#1 Repository of the week

1
TINIX TRENDING·Topic: aptx-hd

#1 Repository of the week

1
TINIX TRENDING·Topic: aptx

#1 Repository of the month

[open]aptx - reverse-engineered apt-X

This project is for research purposes only. Without a proper license private and commercial usage might be a case of a patent infringement. If you are looking for a library, which can be installed and used legally (commercial, private and educational usage), go to the Qualcomm® aptX™ homepage and contact Qualcomm customer service.

The source code itself is licensed under the terms of the MIT license. However, compression algorithms are patented and licensed under the terms of a proprietary license. Hence, compilation and redistribution in a binary format is forbidden!

Compilation

mkdir build && cd build
cmake -DENABLE_DOC=ON -DWITH_FFMPEG=ON -DWITH_SNDFILE=ON ..
make && make install

Prerequisites

# Install required packages on Debian-based systems
sudo apt-get install cmake doxygen ffmpeg libfreeaptx-dev libsndfile1-dev

Configure options

  • ENABLE_DOC - build and install manual files (requires Doxygen)
  • ENABLE_APTX_DECODER_API - build with apt-X / apt-X HD decoder API (default: ON)
  • ENABLE_APTX_ENCODER_API - build with apt-X / apt-X HD encoder API (default: ON)
  • ENABLE_APTX422 - build reverse engineered apt-X library based on bt-aptX-x86-4.2.2.so
  • ENABLE_APTXHD100 - build reverse engineered apt-X HD library based on aptXHD-1.0.0-ARMv7A
  • WITH_FFMPEG - use FFmpeg as a back-end (otherwise, stub library will be built)
  • WITH_FREEAPTX - use libfreeaptx as a back-end (FFmpeg back-end must be disabled)
  • WITH_SNDFILE - read file formats supported by libsndfile (used by openaptx utils)

In the apt-X stub library (build without FFmpeg back-end), all symbols are exported as weak. As a consequence, it should be possible to overwrite them during runtime with other library which exports strong symbols. However, it might be required to define LD_DYNAMIC_WEAK environment variable - for more information consult ld.so manual.

When reverse-engineered libraries were enabled, they will be automatically linked with the apt-X stub library (build without FFmpeg back-end). See previous paragraph for the meaning of this.

Benchmark

Below is the result of a small benchmark test performed with various apt-X encoding libraries. Test was done with the usage of aptxenc and aptxhdenc tools from this repository. Elapsed user time was calculated with the usage of a standard UNIX time command line tool. All libraries (except original Qualcomm libraries) were compiled with Clang version 9.0.0 with the O3 optimization level.

Setup

  • CPU: ARM Cortex-A53
  • Input file: WAV audio, Microsoft PCM, 16 bit, stereo 48000 Hz
  • Input duration: 15 minutes 45 seconds

Results

Libraryapt-XMbit/sapt-X HDMbit/s
libaptX-1.0.16-rel-Android211m01s23.8——
libaptXHD-1.0.1-rel-Android21——1m04s22.7
openaptx-stub0m11s0.00m11s0.0
openaptx-ffmpeg (libavcodec-59.37.100)2m12s11.02m18s10.5
aptx4221m14s19.6——
aptxHD100——1m16s19.1
libopenaptx-0.2.01m17s18.81m19s18.4

Resources

  1. AptX audio codec family
  2. AptX encoder source code
  3. AptX HD encoder source code
  4. Method and apparatus for electrical signal coding
  5. Two-channel QMF bank

Similar Projects

Discover other similar projects and AI models.

RepositoryC
pali/libopenaptx

Open Source implementation of Audio Processing Technology codec (aptX)

150
Apr 25, 2021
RepositoryRust
SeiyaFunaokaJP/BlueCaster

Audio Transmission APP on Windows (LDAC, LHDC V5, LE Audio, aptX Adaptive, aptX HD, aptX Low Latency, aptX, AAC, SBC XQ, SBC, FastStream, Opus, Opus 05)

225
Dec 2, 2026
RepositoryJavaScript
react/react

The library for web and native user interfaces.

253.0k
Nov 30, 2026
Repository
Hack-with-Github/Awesome-Hacking

A collection of various awesome lists for hackers, pentesters and security researchers

127.1k
Oct 27, 2026
RepositoryJava
NationalSecurityAgency/ghidra

Ghidra is a software reverse engineering (SRE) framework

101.9k
Dec 1, 2026
RepositoryC++
WerWolv/ImHex

🔍 A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM.

56.2k
Dec 2, 2026
RepositoryC++
x64dbg/x64dbg

An open-source user mode debugger for Windows. Optimized for reverse engineering and malware analysis.

50.4k
Nov 22, 2026
RepositoryC
curl/curl

A command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, MQTTS, POP3, POP3S, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET, TFTP, WS and WSS. libcurl offers a myriad of powerful features

43.7k
Nov 28, 2026
RepositoryC
radareorg/radare2

UNIX-like reverse engineering framework and command-line toolset

25.5k
Nov 30, 2026