• 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
Re: AVAudioSession or equivalent on Mac OSX?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AVAudioSession or equivalent on Mac OSX?


  • Subject: Re: AVAudioSession or equivalent on Mac OSX?
  • From: Bob Sabiston <email@hidden>
  • Date: Tue, 18 Dec 2012 18:49:54 -0600

So to handle both cases, I would have to be able to render the samples as floats and sint16's?

I guess that is not that big a deal, but for the sake of argument, if I wanted to be able to use the same code for both, do you how I would make CA_PREFER_FIXED_POINT == 1 for the mac?  

Thanks,
Bob



Oops! Forgot to reply-all back to the list there, sorry.

Personally, I wouldn't change CA_PREFER_FIXED_POINT. In our products we just handle both cases.


On Tue, Dec 18, 2012 at 5:35 PM, Bob Sabiston <email@hidden> wrote:
Thanks -- do you know anything about CA_PREFER_FIXED_POINT?

It seems that on OSX it wants the samples to be floats, where my iOS code uses SInt16's.  Is there a way to tell OSX to use the Sint16's?

I can't just #define CA_PREFER_FIXED_POINT 1 can I?

Bob




On Dec 18, 2012, at 6:28 PM, Art Gillespie <email@hidden> wrote:

You can #ifdef out the AudioSession stuff for your Mac OS X target, it's neither needed nor supported on OS X.

Your AUGraph code should port no problem, and as long as the mixer units you used were either kAudioUnitSubType_MultiChannelMixer or kAudioUnitSubType_MatrixMixer, you should be good to go. (kAudioUnitSubType_AU3DMixerEmbedded isn't supported on OS X)


On Tue, Dec 18, 2012 at 5:22 PM, Bob Sabiston <email@hidden> wrote:
Hello,

  I am trying to develop a cross-platform app between iOS and Mac OS X.  I am working on the audio portion.

On iOS I am using synthesized sound with an AVAudioSession, an AUGraph and some mixer units.  It has been awhile since I looked at it so I am a little foggy on how it all goes together.  But basically I am rendering samples into a buffer and playing them using these audio units.

What is the easiest simplest way to set up the same thing on Mac?  Is the same code supported?  I looked around in the sample code on the developer website, but I didn't see anything very close.  I am going to take a look at that AVRecorder code, because I think that is what I used on iOS.  But I wanted to ask here in case someone has a better idea.

Thanks
Bob


 _______________________________________________
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

References: 
 >AVAudioSession or equivalent on Mac OSX? (From: Bob Sabiston <email@hidden>)

  • Prev by Date: Re: Playhead and the AUFilePlayer
  • Next by Date: Re: AVAudioSession or equivalent on Mac OSX?
  • Previous by thread: AVAudioSession or equivalent on Mac OSX?
  • Next by thread: Re: AVAudioSession or equivalent on Mac OSX?
  • Index(es):
    • Date
    • Thread