• 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
Re: multithreaded mixer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: efficient device channel enabling - was Re: fIsMixable
  • Next by Date: Using Unique ID's from Java
  • Previous by thread: Re: multithreaded mixer
  • Next by thread: Re: multithreaded mixer
  • Index(es):
    • Date
    • Thread