Skip to content

Instantly share code, notes, and snippets.

@vsefer
Last active November 14, 2019 23:14
Show Gist options
  • Save vsefer/7454485c3f5e6878aac21035876e9437 to your computer and use it in GitHub Desktop.
Save vsefer/7454485c3f5e6878aac21035876e9437 to your computer and use it in GitHub Desktop.
sudo apt install cmake libpulse-dev libsbc-dev libavcodec-dev fdkaac libbluetooth-dev libltdl-dev libdbus-glib-1-dev libfdk-aac-dev
git clone https://github.com/EHfive/pulseaudio-modules-bt.git
cd pulseaudio-modules-bt/
git submodule update --init
git -C pa/ checkout master
mkdir build && cd build
cmake -DFORCE_LARGEST_PA_VERSION=ON ..
-- The C compiler identification is GNU 9.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
-- Checking for module 'libpulse'
-- Found libpulse, version 13.0
-- Checking for module 'dbus-1'
-- Found dbus-1, version 1.12.16
-- Checking for module 'sbc'
-- Found sbc, version 1.4
-- Checking for module 'libavcodec>=58.18.100'
-- Found libavcodec, version 58.54.100
-- Checking for module 'libavutil>=56.14.100'
-- Found libavutil, version 56.31.100
-- Checking for module 'fdk-aac>=0.1.5'
-- Found fdk-aac, version 2.0.1
-- Checking for module 'ldacBT-enc'
-- No package 'ldacBT-enc' found
-- Checking for module 'ldacBT-abr'
-- No package 'ldacBT-abr' found
[HFP] ofono HFP headset support enabled
[HSP] native HSP headset support enabled
[A2DP] FFmpeg aptX support enabled
[A2DP] FFmpeg aptX HD support enabled
[A2DP] fdk-aac LC-AAC support enabled
-- CMAKE_C_FLAGS = -O2 -Wall -Wno-builtin-macro-redefined -Wno-unused -fno-common -DFASTPATH -D__FILE__='"$(subst /home/vsefer/pulseaudio-modules-bt/src/,,$(abspath $<))"'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vsefer/pulseaudio-modules-bt/build
make -j8
sudo make install
pulseaudio -k
pulseaudio --start
pactl list | grep a2dp_codec
bluetooth.a2dp_codec = "aptX"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment