Skip to content

Instantly share code, notes, and snippets.

@zema1
Forked from marnovo/enable_aptx_aac_macos.sh
Last active September 1, 2020 14:47
Show Gist options
  • Select an option

  • Save zema1/341b51554269775689fb671d5893aa49 to your computer and use it in GitHub Desktop.

Select an option

Save zema1/341b51554269775689fb671d5893aa49 to your computer and use it in GitHub Desktop.

Revisions

  1. zema1 revised this gist Oct 18, 2018. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions enable_aptx_aac_macos.sh
    Original file line number Diff line number Diff line change
    @@ -5,11 +5,14 @@

    sudo defaults write bluetoothaudiod "Enable AptX codec" -bool true
    sudo defaults write bluetoothaudiod "Enable AAC code" -bool true
    # default is 128, you can change to higher
    sudo defaults write bluetoothaudiod "AAC Bitrate" 128

    # Reads set values, should return something like:
    # {
    # "Enable AAC code" = 1;
    # "Enable AptX codec" = 1;
    # "AAC Bitrate" = 128;
    # }

    sudo defaults read bluetoothaudiod
  2. @marnovo marnovo created this gist Jan 22, 2018.
    19 changes: 19 additions & 0 deletions enable_aptx_aac_macos.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    # (c) 2018 Marcelo Novaes
    # License - MIT

    # Enable AptX and AAC codecs on bluetooth connections on macOS

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

    # Reads set values, should return something like:
    # {
    # "Enable AAC code" = 1;
    # "Enable AptX codec" = 1;
    # }

    sudo defaults read bluetoothaudiod

    # You should be able to check it by connecting a compatible bluetooth device, playing some
    # compatible music and then holding Option (Alt) and clicking on the Bluetooth menu bar icon.
    # This should show you inside the connected device menu item Active Codec: AptX (or AAC)