Sync question about CoreAudio and DCL program callback
Sync question about CoreAudio and DCL program callback
- Subject: Sync question about CoreAudio and DCL program callback
- From: "David Tan" <email@hidden>
- Date: Mon, 19 Jan 2009 17:02:11 +0800
Hi Apples,
I’m working on a FireWire audio driver and got a
critical question about the sync of IOAudioEngine::clipOutputSamples() and DCL
program Callback.
What I want to do is to copy audio data from CoreAudio
buffer to the output buffer of DCL program. But I’m not sure if clipOutputSamples()
and DCL program callback will run in the same workloop.
Because if they run in different threads, I have to put
a semaphore or something like this to protect the buffer access from two
threads, One of which is writing in clipOutputSamples(), and the other is
reading in DCL program callback. And if we have to do this, I wonder if there’s
any good way you can recommend.
Any experience of advice will be much appreciated! Thanks
a lot!
Sincerely yours,
David Tan
Software Engineer
Dextrys Co., Ltd.
|
_______________________________________________
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