Polling Callback, Threads [Attn: Michael Thornburgh]
Polling Callback, Threads [Attn: Michael Thornburgh]
- Subject: Polling Callback, Threads [Attn: Michael Thornburgh]
- From: Daniel Todd Currie <email@hidden>
- Date: Wed, 10 Dec 2003 14:24:03 -0800
So I've created this really cool tuner application that uses CoreAudio
to simply get audio from the default audio device. I have naively
acquired my buffer data by placing a message to my analyzer class
inside the IOProc callback function. Needless to say, system
performance is quite poor while my app is running. ;)
I've been told that i will need to set up a new thread to communicate
with the CoreAudio thread and to grab the buffers as they are filled.
I don't quite know how to do this, but I would really hate to see this
project go to waste (it is a freeware project, if that might encourage
your charity).
Is there perhaps a framework available somewhere that would make this
problem easier to deal with? I would have expected that there would be
some way to streamline the process of acquiring audio data in a
desirable manner, since every CoreAudio programmer must do it. Any
other tips would be greatly appreciated; a brief outline of how I
should go about getting my buffer data would be invaluable. Thanks in
advance...
Daniel Currie (crossing fingers)
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.