• 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
iPhone remoteIO audio unit question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iPhone remoteIO audio unit question


  • Subject: iPhone remoteIO audio unit question
  • From: Bruce Meagher <email@hidden>
  • Date: Fri, 30 Oct 2009 17:07:57 -0700

Hi all,

I have a question about the RemoteIO audio unit on the iPhone and I'm hoping someone on the list can comment if what I'm doing is OK (or is just plain dumb!)

I've created a little Objective-C class that plays my pcm based sound effects through a RemoteIO audio unit. I pass a buffer to a play method and the audio starts playing with very little delay (my render callback starts playing the buffer within CurrentHardwareIOBufferDuration samples). Exactly what I needed.

Since I'm such an OO guy... when I wanted to play two sounds simultaneously I just created another instance of my little Objective- C class. This seems to work fine on the simulator and device, and the sounds appear to be mixed just fine. However, I'm wondering if I'm breaking some type of rule by creating two RemoteIO audio units inside my app (and just by luck this is working). Clearly there's some underlying system process that mixes audio from all the different sources (ipod, sms, phone, calender,... etc) so is having two RemoteIO audio units in one app ok?

I can create graph with a mixer connected to the remoteIO audio unit, but creating two instances just seemed to be so easy (although in hindsight maybe not the right thing).

Anyone know if this is OK?

Bruce
_______________________________________________
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


  • Prev by Date: Re: Recording in .wav format doesn't work properly
  • Next by Date: Re: synchronization of input and output
  • Previous by thread: from OfflineRender to audio unit multichannel Mixer?
  • Index(es):
    • Date
    • Thread