• 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: audio computation and feeder threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: audio computation and feeder threads


  • Subject: Re: audio computation and feeder threads
  • From: Bill Stewart <email@hidden>
  • Date: Sat, 1 Mar 2003 18:23:57 -0800

On Friday, February 28, 2003, at 08:24 PM, Lionel Woog wrote:

Typically, an IOProc will be called with a 512 frames request. If you can
generate that much in or close to real time you are fine. If you cannot
always do it (i.e. You generate 8K frames at a time, so the lag to provide
the first 512 frames is large), then you need a feeder thread that
pre-computes and buffers the data.

I believe that you will find core audio very able at keeping itself fed.

Actually, to nit-pick, this statement really implies that you CAN'T run in real time (so buffering won't help you with a real-time control stream like responding to MIDI input), so could only process your input to a resultant audio file to be played back later... (much like Logic 6's new "freeze" functionality)

Bill

-- mailto:email@hidden
tel: +1 408 974 4056

________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __
_______________________________________________
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: Writing an AudioUnit (was: Simple VST to AU)
  • Next by Date: Re: Simple AU from VST?
  • Previous by thread: Re: audio computation and feeder threads
  • Next by thread: Re: audio computation and feeder threads
  • Index(es):
    • Date
    • Thread