catastrofe Posted February 13, 2009 Share Posted February 13, 2009 Chris, Why is it necessary to close/reopen iTunes when changing audio midi settings? My DAC displays input frequency, and when I change midi settings on the fly, they are immediately recognized by the DAC. My limited understanding is that midi adjusts the selected output device on the Mac, and is "downstream" of iTunes. Doesn't iTunes ouput a file in its native format "upstream" of the output device? If so, why is iTunes affected by the midi settings? Thanks, Bob BPT 3.5 Ultra/Reference 3A Reflectors/MSB Technology S201 Amplifier/MSB Technology Analog DAC/MSB Technology Network Renderer/Audirvana + Link to comment
audioengr Posted February 13, 2009 Share Posted February 13, 2009 It's because there are two audio stacks, iTunes and OSX. They each have mixers and upsamplers I believe. You want to envoke iTunes upsampler I believe, which is better. Steve N. Link to comment
catastrofe Posted February 13, 2009 Author Share Posted February 13, 2009 Thanks Steve. It's still confusing. . .I'm not upsampling, I'm playing the file in native resolution and I want the output device settings to match that resolution. So, if I change the midi settings to match the file, why do I need to do anything with iTunes? BPT 3.5 Ultra/Reference 3A Reflectors/MSB Technology S201 Amplifier/MSB Technology Analog DAC/MSB Technology Network Renderer/Audirvana + Link to comment
The Computer Audiophile Posted February 13, 2009 Share Posted February 13, 2009 Hi Bob - My DAC also displays the sample rate and changing audio midi certainly does change the sample rate of OS X and the display on the DAC. However, iTunes looks at the audio midi sample rate at the time the program is opened and locks on that rate. It will output that sample rate until it is closed and reopened. Does this clear it up? Let me know. Founder of Audiophile Style | My Audio Systems Link to comment
catastrofe Posted February 13, 2009 Author Share Posted February 13, 2009 Chris, It makes perfect sense now. I didn't realize there was interaction between itunes and midi. Thanks, Bob BPT 3.5 Ultra/Reference 3A Reflectors/MSB Technology S201 Amplifier/MSB Technology Analog DAC/MSB Technology Network Renderer/Audirvana + Link to comment
Dave Clark Posted February 17, 2009 Share Posted February 17, 2009 If I launch iTunes with the Midi set to 16/44.1 and play a file that is true 24/96, my DAC shows it is receiving 16/44.1 input, but if I then change the Midi setting to 24/96 (while the 24/96 track is still playing) the DAC then changes to show that it is now receiving a 24/96 input. So is it actually sending the 24/96 file in its native resolution or not? Dave Clark[br]Editor, Positive Feedback Online Link to comment
The Computer Audiophile Posted February 17, 2009 Share Posted February 17, 2009 Hi Dave - iTunes is playing the file at 16/44.1 then audio midi is up sampling it to 24/96 which is why the DAC displays 24/96. It is not native 24/96 until iTunes is closed and reopened. Founder of Audiophile Style | My Audio Systems Link to comment
Dave Clark Posted February 17, 2009 Share Posted February 17, 2009 Got it... so at first it is downsampling the 24/96 to 16/44.1, then upsampling the 16/44.1 to 24/96... and I guess if you change anything else after that it can become rather convoluted... would be nice if someone would fix this... iTunes 10 anyone? Dave Clark[br]Editor, Positive Feedback Online Link to comment
HiFiInsider Posted March 11, 2009 Share Posted March 11, 2009 On my new '09 Mac Mini, I noticed there a setting "encoded digital audio" in Audio Midi of OS X. If I mainly play 2 channel 16/44.1 files thought my PS Audio DLIII, would it be ideal to set it there or use the new "encoded digital audio"? http://www.youtube.com/hifiguy528/videos Link to comment
AV-OCD Posted March 11, 2009 Share Posted March 11, 2009 I believe that the option you are referring to is used when you want to output a dolby digital or DTS surround signal. So the 16/44.1 would be the one to use for stereo output. Cheers,[br] - Tim Link to comment
HiFiInsider Posted March 11, 2009 Share Posted March 11, 2009 Thanks for the quick reply. What you said makes sense. However, I also use the Mini as a movie server (rarely) but I do. Does "encoded audio" allow what ever iTunes music files are ripped as and make changes as needed? http://www.youtube.com/hifiguy528/videos Link to comment
AV-OCD Posted March 11, 2009 Share Posted March 11, 2009 DJ - I would think that you would need to change the output type to match the audio file type, but the only way to know for sure is to set it to encoded audio and try playing a file in iTunes. My guess is that you will get no sound. Cheers,[br] - Tim Link to comment
HiFiInsider Posted March 11, 2009 Share Posted March 11, 2009 Well, I tried the "encoded audio" setting and when iTunes play a song, it automatically changed back to 16/44.1 since the source was ripped from 16/44.1. I have not tried any Dolby Digital audio yet because I don't have it set up to my HT system. http://www.youtube.com/hifiguy528/videos Link to comment
dsbourque Posted April 15, 2009 Share Posted April 15, 2009 What happens when the Midi is set for 24/96 and I play a lower resolution file? My DAC continues to show 96kHz. Is iTunes actually upsampling? Link to comment
flatmap Posted April 16, 2009 Share Posted April 16, 2009 What happens when the Midi is set for 24/96 and I play a lower resolution file? My DAC continues to show 96kHz. Is iTunes actually upsampling? Case 1: Midi is set to 24/96 before iTunes is opened. In this case iTunes believes that the output device wants 24/96 and therefore upsamples to same. Case 2: Midi is set to 24/96 after iTunes is launched. In this case iTunes believes the output device wants whatever Audio Midi was set to at the time of launch, let's say 24/88.2. If iTunes were playing a 24/44.1 file, it would upsample to 88.2 and then Audio Midi would upsample to 96. And you can see there are other undesirable cases as well based on what file is getting played, what the Midi settings are at the time of iTunes launch, and what Midi is set to currently. I think that's how it works. :-) 2013 MacBook Pro Retina -> {Pure Music | Audirvana} -> {Dragonfly Red v.1} -> AKG K-702 or Sennheiser HD650 headphones. Link to comment
Cynic Posted February 2, 2010 Share Posted February 2, 2010 So if I understand correctly (assuming no Amarra or PureVinyl): 1. The iTunes sample rate converter is better than Core Audio's (OS X's), and you always want the computer to use it. 2. The only time the computer will use Core Audio's converter is when you (a) already have iTunes open, and (b) change the output setting in Audio Midi, and © fail to restart iTunes afterward. 3. Otherwise, all sample rate changes (both upsampling and downsampling) will be done by iTunes. Assuming you did NOT do 2. above, then if Audio Midi is set to 44.1 and you are playing a 96 file, iTunes will downsample it. If Audio Midi is set to 96 and you are playing a 44.1 file, iTunes will upsample it. Core Audio will not get involved. Does anyone know if that is correct? Link to comment
Purite Audio Posted February 2, 2010 Share Posted February 2, 2010 I would play each file in it's native format ie 44.1 as 44.1, players like Amarra ( PV too I believe ) will automatically sense and change differing sample rates, otherwise you have to quit itunes open audi midi, change rate reopen itunes. Keith. Link to comment
lazycatken Posted February 3, 2010 Share Posted February 3, 2010 Just had a glance at Apple sample code "PlayFile". Here's the section where AudioUnitGraph is setup //////////////////////////////////////////////////////////////////////// // output node cd.componentType = kAudioUnitType_Output; cd.componentSubType = kAudioUnitSubType_DefaultOutput; cd.componentManufacturer = kAudioUnitManufacturer_Apple; AUNode outputNode; XThrowIfError (AUGraphAddNode (theGraph, &cd, &outputNode), "AUGraphAddNode"); // file AU node AUNode fileNode; cd.componentType = kAudioUnitType_Generator; cd.componentSubType = kAudioUnitSubType_AudioFilePlayer; XThrowIfError (AUGraphAddNode (theGraph, &cd, &fileNode), "AUGraphAddNode"); /////////////////////////////////////////////////////////////////////////// Default Output audio unit is invoked, but without any setting. File Player audio unit is set as the format of the file. Looks like, all the conversions are done by Default Output audio unit. This a simple way to play a file. Does iTunes do this way? Another way is to do sample rate conversion by application. Audiotoolbox SDK provides a function to create an audio converter object. /////////////////////////////////////////////////////////////////////// AudioConverterNew Creates a new audio converter object based on specified audio formats. OSStatus AudioConverterNew ( const AudioStreamBasicDescription *inSourceFormat, const AudioStreamBasicDescription *inDestinationFormat, AudioConverterRef *outAudioConverter ); //////////////////////////////////////////////////////////////////////// The property of a converter can be set, including these two: /////////////////////////////////////////////////////////////////////// Sample Rate Conversion Quality Identifiers Specifiers for sample rate conversion quality, used for the kAudioConverterSampleRateConverterQuality property. enum { kAudioConverterQuality_Max = 0x7F, kAudioConverterQuality_High = 0x60, kAudioConverterQuality_Medium = 0x40, kAudioConverterQuality_Low = 0x20, kAudioConverterQuality_Min = 0 }; Sample Rate Conversion Complexity Identifiers Specifiers for the sample rate conversion algorithm, used for the kAudioConverterSampleRateConverterComplexity property. enum { kAudioConverterSampleRateConverterComplexity_Linear = 'line', kAudioConverterSampleRateConverterComplexity_Normal = 'norm', kAudioConverterSampleRateConverterComplexity_Mastering = 'bats', }; ///////////////////////////////////////////////////////////////////////// So, questions: If iTunes do sample rate conversion, what level of quality it uses? If iTunes doesn't do sample rate conversion, this means, it's done by Default Output audio unit, , what level of quality that Default Output audio unit uses? MacBook Pro 15\" -> EMU-0404 USB -> AK4380 DAC -> Audiolab 8000B mod -> Spica TC-50/PMC LB1 Link to comment
Bob Stern Posted February 5, 2010 Share Posted February 5, 2010 As Chris said, iTunes always outputs the sample rate that was specified for the default output device in Audio MIDI Setup at the time iTunes was launched. If iTunes plays a file with any other sample rate, iTunes performs SRC to convert it to that initially specified sample rate. If the user or some other application changes the sample rate of the default audio device in Audio MIDI Setup without relaunching iTunes, Core Audio will perform a second SRC operation to convert the output of iTunes to the sample rate of the default output device. An Apple engineer on the Core Audio discussion list refused to reveal which of the above quality settings iTunes uses, except that he did reveal: (1) The quality depends on CPU load. In other words, iTunes will lower the SRC quality if your CPU cannot keep up with a higher quality. (2) The "complexity" parameter is never the best setting, i.e., "mastering" or "bats". The Apple engineer acknowledged that it is a bug that iTunes latches onto an output sample rate when it is launched, but he said the iTunes programmers had other priorities, so he couldn't predict when they would fix the bug. HQPlayer (on 3.8 GHz 8-core i7 iMac 2020) > NAA (on 2012 Mac Mini i7) > RME ADI-2 v2 > Benchmark AHB-2 > Thiel 3.7 Link to comment
Cynic Posted February 10, 2010 Share Posted February 10, 2010 Gordon Rankin at Wavelength tells me that Apple says it is not a bug that iTunes locks onto the sample rate when it launches. Even if it is not a bug, it is a nuisance. Link to comment
HiFiInsider Posted May 19, 2011 Share Posted May 19, 2011 iTunes seems to sound better when AudioMidi is set to 24/88.2 and then open iTunes and play 16/44.1 files. Am I imagining? http://www.youtube.com/hifiguy528/videos Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now