pass-thru using audio queues?
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