How to Enable the Optimal Audio Codec for Your Bluetooth Headphones in macOS

Discussion in 'Mac Blog Discussion' started by MacRumors, Mar 22, 2018.

  1. MacRumors macrumors bot

    MacRumors

    Joined:
    Apr 12, 2001
    #1
    [​IMG]


    How good your digital music sounds often comes down to which file format it's encoded in. Be that as it may, every Mac audio setup is only as strong as it's weakest link, and if your Bluetooth connection isn't up to scratch, even the best BT headphones will fail to deliver a decent wireless listening experience.

    By design, all Bluetooth devices support the low-power SBC audio compression codec as standard. Fortunately, modern Macs also support AAC (Apple's preferred iTunes codec) and aptX, which Android devices often use. These two codecs offer higher quality audio and generally lower latency than SBC, which is why most third-party wireless headphones on the market support one or the other, and sometimes both.

    [​IMG]

    Yet for whatever reason, despite their AAC/aptX support, some headphones fall back to the bog-standard SBC codec when connected to a Mac. This can lead to a particularly underwhelming audio experience, not to mention latency-related sync issues, which will be a distinct concern if you use your headphones while gaming or watching movies.

    Thankfully, it's possible to force macOS to connect to your headphones using one of the two superior codecs. In this article, we'll show you how to do so using Apple's Bluetooth Explorer utility. (And if you're comfortable opening a Terminal window, we've included a couple of commands at the end that do the same thing.)

    [​IMG]

    But first, it's worth checking which codecs your brand of headphones actually supports: Look for codec logos on the box, and make sure to check for references to codecs in the manual and any accompanying/online spec sheets.

    Once you've established that your headphones support aptX and/or AAC, you'll want to identify which codec is being activated when you connect the headphones to your Mac. Follow these steps to find out.

    How to Identify Which Bluetooth Codec is Active
    1. Establish a Bluetooth connection between your Mac and headphones in the normal manner.
      Play some audio on your Mac so that it's streaming to the headphones.
      Now hold down the Option (Alt) key and click on the Bluetooth symbol in the menu bar. (If you don't see it there, you need to check Show Bluetooth in menu bar in System Preferences -> Bluetooth.)
      Hover your mouse cursor over the headphones in the connection list. You should see the headphones' Active Codec shown in grey.
      [​IMG]
    If your headphones are using AAC or aptX, you don't need to do anything. Without going into the technical details, both standards provide relatively stable wireless connections and - as far as Bluetooth goes - comparably decent sound quality. However, if the codec shown is SBC, you'll probably want to change it. Here's how.

    How to Force-Enable aptX and AAC Codecs in macOS

    1. Open a web browser, navigate to Apple's developer downloads page, and download Additional Tools for Xcode 9 [Direct Link] which contains Apple's Bluetooth Explorer utility. Note that to access the page you'll need to register for a free Apple developer account if you don't already have one. Alternatively, use Google to find the Bluetooth Explorer utility hosted elsewhere and skip to step 5, but if you're not downloading from Apple, be sure to screen the file for malware.
      [​IMG]

      Once downloaded, double-click the Additional Tools dmg file to mount it on your desktop.
      Open the Additional Tools drive and navigate to the Hardware folder.
      Open your Mac's Applications folder in another Finder window or tab.
      [​IMG]

      Drag Bluetooth Explorer into your Mac's Applications folder and launch the app from there.
      From the Bluetooth Explorer menu bar, select Tools -> Audio Options.
      In the Codecs section, tick the checkboxes alongside Enable AAC and/or Force use of aptX (depending on your issue). Make sure Disable AAC and Disable aptX are left unchecked.
      [​IMG]

      Click Close to finish.
      Restart your Mac, or reset the Bluetooth module.
    When your Mac reboots, you can confirm that the codec change has been applied by following the first series of steps in this article.

    Terminal commands for enabling AAC and aptX Codecs

    To enable aptX, input the following command, press Enter, and type your user password if prompted:
    sudo defaults write bluetoothaudiod "Enable AptX codec" -bool true

    Alternatively, to enable AAC, input the following and press Enter:
    sudo defaults write bluetoothaudiod "Enable AAC codec" -bool true

    To disable either codec via Terminal, simply replace -bool true with -bool false at the end of the command.

    Article Link: How to Enable the Optimal Audio Codec for Your Bluetooth Headphones in macOS
     
  2. jb-net macrumors member

    Joined:
    Apr 7, 2012
    Location:
    Austria
  3. djlythium macrumors 6502a

    djlythium

    Joined:
    Jun 11, 2014
    #3
    Interesting! I suspect Apple’s own audio devices, such as AirPods, and all of their newer OSs, support AAC?
     
  4. timmyh Contributing Editor

    timmyh

    Joined:
    Mar 18, 2016
    Location:
    Liverpool, UK
    #4
    Correct!
     
  5. Jkivistik macrumors newbie

    Jkivistik

    Joined:
    Mar 22, 2018
    #5
    What about iOS? Is there any way to force AAC (or a2dp) on iOS devices? My Sony MDR1000X headphones sometimes default to the lower quality sound and the only way to get back rocking is to reboot the iPad!
     
  6. Vroem macrumors member

    Vroem

    Joined:
    Nov 9, 2002
    Location:
    Brussels, Belgium, Europe
    #6
    What I always wanted to know is: when listening to iTunes music already encoded in AAC, will it pass-through or re-encode in AAC? Because you potentially loose the benefits of good compression if you recompress. This came to my mind when finding out about albums that sound bad because they are recompressed themselves.
     
  7. Delgibbons macrumors 6502

    Delgibbons

    Joined:
    Dec 14, 2016
    Location:
    London
    #7
  8. fitbunny macrumors newbie

    Joined:
    Mar 22, 2018
    #8
    I have read in multiple sources that all audio is reencoded to AAC whether it comes from itunes as AAC or not. However, all the sources say that this reencoding does not cause much of a quality loss because AAC as a codec is transparent even after 100 reencodings. I use beoplay e8 and the sound is the best I have ever listened to with Bluetooth headsets that I have used so far and I have used quite a few aptx headsets by Sennheiser. The only problem with the above tutorial is that the setting are lost when reconnect your beoplay e8. I used sudo and normal user to change the plist instead of using the gui and the settings seem to be saved now. here is the commands that I used:
    Code:
    defaults write bluetoothaudiod "Enable AAC codec" -bool true
    
    defaults write bluetoothaudiod "AAC Bitrate" 320
    
    sudo defaults write bluetoothaudiod "Enable AAC codec" -bool true
    
    sudo defaults write bluetoothaudiod "AAC Bitrate" 320 
     
  9. levitynyc macrumors 65816

    Joined:
    Aug 19, 2006
  10. honglong1976 macrumors 6502a

    honglong1976

    Joined:
    Jul 12, 2008
    Location:
    UK
    #10
    Using Powerbeats 3, AAC is used on Mac OS X and most likely iOS. Using some £17 xiaomi bluetooth earphones, Apt-X is used on the Mac (unsure about iOS).

    So, it seems to get the best quality sound on iOS, use Apple bluetooth earphones or those which support AAC.
     
  11. hagar macrumors 6502a

    Joined:
    Jan 19, 2008
    #11
    Those are some easy steps every average user will definitely follow
     
  12. cyanite macrumors member

    Joined:
    Sep 28, 2015
    #12
  13. Böhme417 macrumors 6502

    Joined:
    Mar 11, 2009
    #13
    I can't tell if this is sarcasm or not. It seems fairly simple and straightforward. I doubt this is something an average or casual user would care about anyway.
     
  14. simonmet macrumors 68000

    simonmet

    Joined:
    Sep 9, 2012
    Location:
    Sydney
    #14
    Do the Powerbeats support aptX though? Apple seems to prefer AAC. I’m not sure what the technical differences are but as the author says it’s likely not much and impossible to discern.

    To confuse matters, there are also multiple versions of aptX including aptX “high quality” which is supposed to be near or practically lossless.
     
  15. rumormiller macrumors newbie

    Joined:
    Aug 27, 2017
    #15
    Thanks for this article, it just confirmed my worst suspicions about macOS/iOS and bluetooth audio to third-party speakers. I have a apt-x speaker and it sounds awesome connected to my LG TV via bluetooth which also supports apt-x. Forcing apt-x on macOS and the speaker sounds really low-fi. Worse still, my Apple TV wouldn't even connect to the bluetooth speaker. Since my Mac/ATV are connected to the LG TV I can avoid their weak bluetooth support.
     
  16. dionysos283 macrumors newbie

    Joined:
    Jun 6, 2017
    #16
    Is there any possibility to enable LDAC on Mac? :/
     
  17. honglong1976, Mar 22, 2018
    Last edited: Mar 22, 2018

    honglong1976 macrumors 6502a

    honglong1976

    Joined:
    Jul 12, 2008
    Location:
    UK
    #17
    No. AAC, APT-x, just another delivery method. All are lossy. I found, garbage headphones, regardless of APT-x, AAC, SBC, sound is bad. Decent headphones, using APT-x, SBC, AAC, you can't tell to be honest.

    I use these the most. Supports APT-x on the Mac without any software changes, sounds great and cheap!
    https://www.gearbest.com/earbud-headphones/pp_692653.html?lkid=13513516

    Have a decent pair of headphones? Try this, Bluetooth headphone amp that supports APT-x
    https://www.gearbest.com/headphone-accessories/pp_663674.html?lkid=13513524

    I use both so I know they work with Mac OS X (High Sierra) and using a Macbook Pro 2009 model.
     
  18. RedGala macrumors regular

    RedGala

    Joined:
    Jun 17, 2015
    #18
    Great article. This is what macrumors is all about.
     
  19. gymnastboatman macrumors regular

    Joined:
    Jul 9, 2014
    #19
    Nope! After enabling AAC on my Mac, my AirPods were finally using the audio codec! It was not on by default.
     
  20. timmyh Contributing Editor

    timmyh

    Joined:
    Mar 18, 2016
    Location:
    Liverpool, UK
    #20
    That’s disappointing, my AirPods seemed to go straight to AAC. I guess yours had other ideas. Glad you got it working though.
     
  21. honglong1976 macrumors 6502a

    honglong1976

    Joined:
    Jul 12, 2008
    Location:
    UK
    #21
    And honestly, I bet you can't even tell the difference.
     
  22. timmyh Contributing Editor

    timmyh

    Joined:
    Mar 18, 2016
    Location:
    Liverpool, UK
    #22
    Even if you can’t hear the difference sonically - and I grant that’s an endless subjective debate - you should at least get a more stable connection generally and less likelihood of sync issues.
     
  23. honglong1976 macrumors 6502a

    honglong1976

    Joined:
    Jul 12, 2008
    Location:
    UK
    #23
    Yes, I agree. Very subjective!

    Connection wise, from cheap and nasty bluetooth earphones, Sony over head headphones, Etymotic ETY8 to the Powerbeats 3, from bluetooth 2.0 to 4.2, I have never had connection issues. Sync issues are common. Powerbeats 3 are still slightly out of sync, disappointing considering the magical W1 chip, which I feel does nothing except make the pairing process quicker. Everything else is the same.

    The only time I have had zero sync issues was using a pair of TDK headphones using Kleer technology. I sold them because a massive 3.5mm dongle was required.
     
  24. ignatius345 macrumors 65816

    Joined:
    Aug 20, 2015
    #24
    The average user probably doesn't know or give a crap about codecs and won't change a thing until there's a big red "make my sound better" button on their screen.

    And that's fine. This obviously isn't written for them, is it?
     
  25. Saipher macrumors demi-god

    Saipher

    Joined:
    Oct 25, 2014
    Location:
    CA
    #25
    Great article! Good job MacRumors!
     

Share This Page