• 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
pass-thru using audio queues?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pass-thru using audio queues?


  • Subject: pass-thru using audio queues?
  • From: "Aaron B." <email@hidden>
  • Date: Sat, 28 Nov 2009 11:53:17 -0500

Hi,

Let's say I'm trying to write an application that receives audio from
an input device and writes it to disk, but also plays it to an output
device (e.g., like recording in GarageBand works).  The Audio Queue
Services guide is very helpful for understanding how to do input OR
output, but I'm not sure what is the easy/right way to do both at the
same time.  I assume there is one callback for input and one for
output, and they have to coordinate somehow.  Naively, I would try to
allocate a circular buffer, and have one callback write to it and one
callback read from it, using appropriate locking.  Is this the right
method?  Are there any gotchas?  (I'm a bit new to audio programming.)

 - Aaron
 _______________________________________________
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: Choosing an AU base class
  • Next by Date: listing audio device UIDs?
  • Previous by thread: Problem with same DeviceID for input and output for Playback
  • Next by thread: listing audio device UIDs?
  • Index(es):
    • Date
    • Thread