首先需要有支持aptx的蓝牙音箱或耳机,比如声擎HD3。
macbook很早就已支持AAC和aptx,音质上 有线 ≈ aptx > aac > SCO
## 下载蓝牙扩展工具
百度网盘:
链接: https://pan.baidu.com/s/1cc49A94WNaWYJLL-GpCknw 密码: 72m8
国外链接:
https://www.dropbox.com/s/ks2rifn0ilue8yu/Bluetooth%20Explorer.app.zip?dl=0
apple官方下载地址:
https://developer.apple.com/download/more/
打开文件找到hardware里面的Bluetooth Explorer
## 配置aptx
打开Bluetooth Explorer.app,它没有主界面。

点击菜单tools,选择 audio option

audio options界面, 勾选 Disable Handsfree Profile

进入terminal,在terminal中执行命令行
```
sudo defaults write bluetoothaudiod "Enable AptX codec" -bool true
sudo defaults write bluetoothaudiod "Enable AAC codec" -bool false
```
禁止默认aac才能开启aptx,切记。然后重启macbook,关闭蓝牙功能在开启,或者关闭蓝牙设备再开启无法直接启用aptx解码器。

如果你的蓝牙设备不支持aptx,那么开启aac即可
```
sudo defaults write bluetoothaudiod "Enable AptX codec" -bool false
sudo defaults write bluetoothaudiod "Enable AAC codec" -bool true
```