Re: multithreaded mixer
Re: multithreaded mixer
- Subject: Re: multithreaded mixer
- From: David Duncan <email@hidden>
- Date: Tue, 3 Feb 2004 12:19:01 -0500
On Feb 3, 2005, at 11:56 AM, Stefan Werner wrote:
On Tuesday, Feb 3, 2004, at 16:02 Europe/Berlin, David Duncan wrote:
Currently your going to have to spawn threads and buffer the output
yourself.
I was thinking about that, but how do I synchronize my threads when
I'm not supposed to block in IOProcs? Or should I just
assume/hope/wish my other thread gets called in time?
And that is what makes this problem thorny =). You can try using the
circular buffer from PlayBufferedSoundFile to buffer each input on it's
own thread. That should get you a lockless buffer at least, and from
there it's just a matter of getting your threads called in time. The
sample is here:
http://www.snoize.com/Code/PlayBufferedSoundFile.tar.gz
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.
David Duncan
_______________________________________________
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.