I am working on a adapting version of the MixerHost sample code for Mac OS instead of IOS. Mostly, this is working, however, the mono audio file only plays back on the left channel in the mac version. In the IOS simulator with the original code, it plays on both left and right channels. How can I get mono output on both channels for Mac OS? Very little has been changed from the original sample code. References to AVAudioSession have been removed. At this point, I am not using NSNotifications for audio status changes and the output settings has been changed to the following: #if TARGET_OS_IPHONE
iOUnitDescription.componentSubType = kAudioUnitSubType_RemoteIO;
#else
iOUnitDescription.componentSubType = kAudioUnitSubType_DefaultOutput;
#endif
Any suggestions would be greatly appreciated.
I read somewhere that the IOS automatically sends mono audio to both sides of stereo for output, so maybe I need to duplicate the single audio buffer to get two channels on a MAC.
thanks
rob |