• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
MixerHost sample code mono file output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MixerHost sample code mono file output


  • Subject: MixerHost sample code mono file output
  • From: Robert Carroll <email@hidden>
  • Date: Wed, 11 Apr 2012 14:51:36 -0400

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
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: MixerHost sample code mono file output
      • From: Alexandre Trottier <email@hidden>
  • Prev by Date: Re: QT -208 error
  • Next by Date: Re: MixerHost sample code mono file output
  • Previous by thread: AudioConverterFillComplexBuffer returns -50 when decoding from MPEG4AAC to PCM
  • Next by thread: Re: MixerHost sample code mono file output
  • Index(es):
    • Date
    • Thread