Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cmm

macrumors 6502a
Original poster
Apr 30, 2006
841
35
NYC
HOWTO: Guide to Fix your Mac OS X's Speaking Map/Configuration and Allow for AC3/DTS Passthrough, So you Can Hear the Audio from Surround Files as it was Designed to be Heard

DIFFICULTY LEVEL: Easy, 10-15 minutes


I created this guide with the hope that other Mac users will search for this irritating problem and find this post.

Having trouble playing the audio tracks from your files (e.g., ripped movies or streaming video or DVDs, etc) in the proper surround sound codec that is available on the source file? I am new to the HiFi world, just getting my first TV and AVR in ~10 years last July. Once I purchased five speakers, I almost immediately noticed most dialog was not coming from the center speaker. I understand that some may come from other speakers, but I was dubious that the amount coming from the rear surrounds was correct. I stumbled upon this website from the Perian app, which is a guide that explains how to setup Perian/Quicktime with true AC3/DTS passthrough. Since that post was written, technology has advanced and Macs now include an HDMI port. Therefore, the post is in need of revision. However, after some tinkering I was able to figure out how to have AC3/DTS passthrough.

On the left side (input) of my Denon AVR 2310’s display, it shows the correct amount of channels based on the source file (e.g., when I watch the Training Day ripped mkv from DVD, it shows 5 distinct channels). The right side of the display shows how many channels are being sent to the speakers (with the Training Day example, it showed 5 distinct channels). As a result, I thought this meant I was getting true 5 channel sound. This is not the case because Apple did not map the speakers properly without a slight tweak in their included software!


This is most likely due to an HDMI format issue and/or bad speaker map from the default audio device configuration that OS X creates for you. This means, your problem most likely is NOT hardware. Read this howto to learn to fix your problem and enjoy movies the way they were meant to be heard!


This guide was created using Mac OS X 10.7.2 on a 2010 17” MacBook Pro for the Denon AVR 2310. I connect the computer to the AVR via HDMI (I use Moshi Mini DP to HDMI Adapter with Audio Support— careful, other Mini DP to HDMI adapters do not have audio support). The AVR connects via HDMI out to the input of my Sony KDL-Z5100 46" LCD TV (and optical audio out to the AVR). I have a 5 speaker setup, no subwoofer. Other Denon AVRs should work (as should any AVR in general, so long as it supports AC3 and DTS passthrough). I have not tested passthrough with an optical cable, but I assume there would be no issues. Your Apple computer and version of OS X may require you use different settings as presented in this guide. Luckily, everything presented here is easily reversed, and nothing presented will cause any irreversible harm to your computer’s hardware, software, or Denon AVR.


INSTRUCTIONS
The key to getting dialog to play (indeed, all channels of the source file to play via the correct speakers in your surround system) correctly, i.e., as it was meant to be heard, is to configure the speaker map on your Mac properly. Follow these instructions, as tested on Mac OS X 10.7.2 (earlier versions may be slightly different):

  1. 1. You need to enable AC3/DTS passthrough. Go to Applications>Utilities>Terminal. When the application opens, copy and paste the following, without the quotes, then press enter: “defaults write com.cod3r.a52codec attemptPassthrough 1” and “defaults write org.perian.Perian attemptDTSPassthrough 1”. q.v. FOOTNOTE 1
  2. 2. Connect the HDMI cable from your AVR to your Mac. Make sure you select the proper mode on your AVR so your computer is recognized. Make sure your audio output device in OS X is changed to, e.g., "DENON-AVAMP" (other AVRs will show something else) from the default "Internal Speakers", otherwise, your audio will play through your internal computer speakers. You can quickly switch the audio output device by clicking on the sound icon in the top menu bar, whilst holding option on the keyboard. If you don't see the sound/volume icon in your menu bar, go to the apple icon in the top left, click System Preferences>Sound. Then click the box for "Show volume in menu bar". This will make your life easier.
  3. 3. Go to Applications>Utilities>Audio MIDI Setup
  4. 4. On the left side of the "Audio Devices" window that appears, click "HDMI".
  5. 5. Change Format to 48000.0 Hz and in the dropdown to the right, select “8ch-24bit Integer”. q.v. FOOTNOTE 2
  6. 6. Now click “Configure Speakers”. In the top right, select the surround system you have. I have 5 speakers (no subwoofer), but I selected “5.1 Surround”. Click each speaker name to make sure sound comes out of the speaker name you just clicked. Adjust as necessary.


That’s it! Now you will hear sound as each track was mixed and it won’t be obfuscated by your Mac! q.v. FOOTNOTE 3 I suggest you double check that everything worked as described by playing a movie file that has AC3 or DTS sound for a minute or two. If there are any unexpected issues, confirm that your source file is using multiple channels by using a video file information analyzer; I recommend VideoSpec (free- the download is slow, just be patient).

Now my Denon AVR-2310 display will continue to say "MULTI CH IN". Also, the Denon AVR 2310CI will show 8 channels on the input (left) side of its display. This is because of the changes made in Audio MIDI Setup and this will not change, based on the source file you are playing. The output to speakers (right) side of the display will also be fixed, at the amount of speaker channels you have (e.g. 5.1, 7.1, etc). The Denon display will still continue to say "MULTI CH IN".


I really hope my guide was helpful. If you have any questions, feel free to ask and I’ll try my best to help!



Footnotes

1 Disclaimer: I am unsure if this is needed anymore. I am leaning towards the idea that this still needs to be done, as the Perian team would have removed the big disclaimer and the link to this site if this part was no longer relevant (this is not the cause for other parts of the guide because it can be variable, depending on your specs and needs). I don’t see the harm in doing this because if something goes awry, you can turn off AC3 and DTS passthrough with the above commands, except you remove the 1 at the end of each command. If that doesn’t make sense, see the guide step #4 I am basing this tutorial of off for the full command. If you have evidence that this step is unnecessary, please provide an explanation and links to support your claim and I will update the guide.

2 You will find a discrepancy in the values I recommend and what the reference link suggests. Specifically, the reference link suggests that you use 2ch-16bit format, but this will not get you surround sound on today's systems. Changing the sample rate to 48 Hz is recommended via the referenced link and since this makes sense, I recommend it here. I think the reason you should now select 8ch-24bit Integer is because when the above guide was written, HDMI was not available on the author's Mac. Now that HDMI is available, selecting 8ch-24bit Integer gives you the best way to configure your surround sound setup, whether you have 5.1, 7.1, etc.. channels. I am not sure if the "8ch-24bit Integer" format value is correct for every situation, however I have tested them and in my situation, the values I give do work properly. Please post your feedback and any changes you made (for reference sake, include the hardware and software used, please!).

3 You may need to configure your preferred media player to take advantage of surround sode tracks, however, there is now no limitation at the OS X level preventing this. VLC works without any further changes, however, some applications have preferences that need to be updated for the fact that you are using an AVR to passthrough audio. In Plex, go to Preferences>System>Audio and Select HDMI in "Audio Output", select your speaker configuration (amount of speaker channels you have) under "Speaker Configuration", select "Dolby Digital (AC3) Capable Receiver" and/or "DTS Capable Receiver", if applicable (yes for Denon AVR-2310CI) and select Default under "Audio Output Device options. Then you can resume your movie taking advantage of your sound surround system. Other video players will be similar. Some media players may require you to close the application and relaunch it for changes to take effect.
 

carlgo

macrumors 68000
Dec 29, 2006
1,806
17
Monterey CA
A perfect example of why no AV gear can really be considered good. Nobody should have to know anything at all about this crap in order to enjoy the experience.

8ch-24bit Integer!!!!!!!! WTF.

One reason why Jobs wanted to get into the TV business.
 

takeshi74

macrumors 601
Feb 9, 2011
4,974
68
A perfect example of why no AV gear can really be considered good. Nobody should have to know anything at all about this crap in order to enjoy the experience.
Nonsense. Plenty of worthwhile things in life come with a learning curve. We all find the time and effort to put into what we each think matters in life.
 

adam2000

macrumors newbie
Jan 26, 2012
13
0
Nonsense. Plenty of worthwhile things in life come with a learning curve. We all find the time and effort to put into what we each think matters in life.

Although your statement is generally correct, I don't find it as an applicable response to carlgo's comment. I think carlgo is absolutely right about what he said. For example, switching from iPhone to Droid phone has a learning curve. Familiarizing yourself with the terminology found in the instructions above and knowing what they actually mean is closer to "specializing" in the area. Long story short, anything beyond the general consumer level actions are either your personal interest or specialty area. If you buy a Mac and A/V receiver and read their manual page by page, I guarantee you that you won't find this specific information in there.

On the flip side, I would have agreed with you 100% if you made the comment about those people who don't even put the smallest effort to learn how to use the basic functionalities of one of the easiest to use products like iPhones and iPads. I have a friend who has been using his iPad for 6 months and didn't even know he doesn't have to shut down his iPad every time like a normal computer. :)
 
Last edited:

Tierry

macrumors newbie
May 26, 2008
4
0
5.1 streaming

I have a late 2007 iMac running on 10.6.8 Snow leopard and would like to know how I could get 5.1 pass through from online streaming programming? I am currently using XBMC Eden 11 software with and can receive HD programming through a DVI adapter into an HDMI cable and it to my TV. The audio had a mini to slink adapter into a regular tosklink cable going into my Onkyo receiver. I know I can get 5.1 through the cable since I can play DVDs through the native OSX's DVD player. I am pretty sure all of my settings are set up correctly in XBMC to receive 5.1 but have yet to witness the sound from those online sources. At best, it will display my sound as being Prologic 2 on the receiver.There must be some kind of decoder or setting that goes though the Mac before it gets to the software? Or does changing the settings on Quciktime make all of that work right?:) I have cable Internet and have no problems with the bandwidth. I am certain the bottle neck is with the Mac. I have been to the Perian website and read everything about how to change the settings but it also states that if no 5.1 sound is detected that all other sound files will not play. Any ideas?
 
Last edited:

unfrostedpoptar

macrumors regular
Jan 29, 2010
173
11
Thanks for the info. I just set up a very similar system but have a question for you. I also have a Denon receiver, but it's a pre-HDMI AVR-1802. I'm using an Atlona AT-HD570 to extract the 5.1 audio and connect it to the Denon's direct, analog 5.1 inputs. I've got all the Sound Preference Pane and Audio MIDI Setup configured for HDMI out and 5.1 speaker setup and it works.

However, like you, I don't have a subwoofer since my main speakers (ADS L1290) can handle the bass without one. But in this configuration, the LFE/Sub channel from any movie I play ends up going nowhere since the Denon doesn't do any bass management when it's using the analog inputs.

How do you deal with this? Does your AVR-2310 have a setup choice to route the LFE to the front channels? I'm not in a position right now to replace my whole setup and get a new receiver so I was hoping there was a way to get the Mac to do this before it sends the data out on the DP/HDMI.

Thanks for any info!
 

JAT

macrumors 603
Dec 31, 2001
6,473
124
Mpls, MN
I also have an older receiver and use the optical out. But I just use VLC when I care about the audio, which can handle many audio codecs properly. You do seem to have to choose the proper audio output from the menu each time.

But you have to realize that this thread is old, the original posters may not be back.
 

zykadelic

macrumors newbie
Jul 28, 2013
1
0
Huge success!

Thank you so much. I was worried that something was wrong with my AVR or speakers, but was confused when this only seemed to happen at random - until I noticed it sounded crappy in VLC but fine in iTunes/QuickTime.

I did have to do one additional thing though to get this fully working: enable the “Use S/PDIF when available” option in VLC Preferences>Audio. Other than that, I can now enjoy movies without having to endure a horrible audio ...that probably killed my speakers a bit.
 
Last edited:

teiki arii

macrumors newbie
Dec 22, 2018
14
5
Hello everyone,
I fixed the sound issue on VLC thanks to cmm advice. But I have the same one with MplayerX 1.1.4.
How can I fix it?
Thank you for answering...
 

dannet

macrumors newbie
Jan 23, 2021
1
1
I dont know why is so difficult to setup on Mac.
For me there is no reason to configure the Mac and tell that which speaker system I have.
It should just send the audio as passthrough with all the information to my receiver and it will play according to the setup I have configured my surround receiver.

Just should be a simple option to set the audio passthrough for HDMI, voila, everything will be fine.
 
  • Like
Reactions: Airsculpture

teiki arii

macrumors newbie
Dec 22, 2018
14
5
Well, it was a bug in the very first release of Sierra if I correctly remember. It does not occur any more....
 

Airsculpture

macrumors 6502
Oct 14, 2020
344
85
What the iMac should do is send the signal natively and let the receiver decode/play whatever it is receiving.

Setting up as indicated above sends everything in the at format, for example 8 channel 16bit or 24 bit or whatever has been set by the user.

Do that, and then play some music, and the music is sent that signal instead of stereo.

I don't use the iMac to play surround ( other than sending AV to Apple TVs home sharing which decode everything they are sent automatically ) but I do play music directly in my office from my iMac to a Marantz receiver. I have lots of audio which is either 24/96 hires or 16/44 lossless. I HAVE to set the output on the iMac to 24/96 2-channel otherwise the hires is downsampled. As it is, everything is played at 24/96 so the 16/44 is upsampled instead of being played natively. My only option would be to change the settings for each album which bitrate and sampling differs.
 

priitv8

macrumors 601
Jan 13, 2011
4,028
638
Estonia
I think that also depends on the playback software.
E.g. it looks like Audirvana will take low-level control over hardware.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.