Enable AAC/apt-X Audio Codec for your bluetooth headphones at macOS

at macOS usually your headphone bluetooth codec is not active,
(only enable when you are use apple’s product)

how to check it ?

  1. start a player
    (because codec only active when headphone playing sound)

  2. hold the “option” key and click bluetooth icon on system bar

  3. check what the active codec status now

if it is disable

you can use this command to enable it

1
2
sudo defaults write bluetoothaudiod "Enable AptX codec" -bool true 
sudo defaults write bluetoothaudiod "Enable AAC codec" -bool true

and restart your bluetooth, now it should work

if you wanna set back to default just set true to false

1
2
sudo defaults write bluetoothaudiod "Enable AptX codec" -bool false 
sudo defaults write bluetoothaudiod "Enable AAC codec" -bool false

reference :
macrumors