• 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: full duplex example
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: full duplex example


  • Subject: Re: full duplex example
  • From: "Han, Yushen" <email@hidden>
  • Date: Wed, 13 Jun 2012 14:30:36 -0400

Chris,

Here is one old post that is helpful to understand the full duplex audio in coreAudio with RemoteIO
http://atastypixel.com/blog/using-remoteio-audio-unit/
One needs two callback functions for input and output respectively to achieve duplex audio.
The code was a modified version of Apple sample code and it should be fairly simple to further adapt it for your need.
It is for coreAudio iOS and works for OS X as well as I tested - one can think coreAudio on iOS a subset of that on OS X.

Beware that there are some significant updates on coreAudio from iOS 4.2/4.3 -> iOS 5 for the better. (Don't know any change on the iOS 6 preview yet.) The good news is that most of the iOS users keep their iOS updated very well.

AUGraph is perhaps a better solution if you want some processing beyond simple I/O.
Here is a 3-part tutorial that I followed - it started with the very basic.
http://timbolstad.com/2010/03/14/core-audio-getting-started/
http://timbolstad.com/2010/03/16/core-audio-getting-started-pt2/
http://timbolstad.com/2010/03/17/core-audio-getting-started-pt3/

Hope this helps.

Best regards,
Yushen Han

The code is derived from some sample code published




On Wed, Jun 13, 2012 at 11:00 AM, christopher raphael <email@hidden> wrote:
Could someone point me to a coding example showing how to do full duplex audio with Coreaudio.  Something very simple like writing the input audio to the output while controlling the I/O buffer size would be perfect. 

Thanks,
Chris



 _______________________________________________
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


 _______________________________________________
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: 
 >full duplex example (From: christopher raphael <email@hidden>)

  • Prev by Date: full duplex example
  • Next by Date: Re: Couple of AUSampler questions:
  • Previous by thread: full duplex example
  • Next by thread: Re: full duplex example
  • Index(es):
    • Date
    • Thread