• 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: In which process/thread is called a device IO procedure?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: In which process/thread is called a device IO procedure?


  • Subject: Re: In which process/thread is called a device IO procedure?
  • From: Jeff Moore <email@hidden>
  • Date: Thu, 18 Jul 2002 13:06:27 -0700

On Thursday, July 18, 2002, at 12:19 PM, Dominic Duchemin wrote:

I whould like to know something about the IO procedure that we give to

ex: AudioDeviceAddIOProc( TheDeviceId, TheIOProc, SomeUserDataPtr);

In which process/thread this function is called?
Is it in the same process/thread that we call AudioDeviceStart and then we must enter an application event loop
or
Simply, a thread is started and it call this procedure at regular timeslices to feed the hardware?

The HAL is entirely a per-process sort of thing. So, the HAL's IO thread runs in the process it is added from.

The HAL creates and manages this thread. You don't have to do anything but tell the HAL what IO proc to call. It worries about making sure that your IO proc gets called at the appropriate time to deliver the data.

--

Jeff Moore
Core Audio
Apple
_______________________________________________
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: In which process/thread is called a device IO procedure?
  • Next by Date: CoreMidi.h?
  • Previous by thread: In which process/thread is called a device IO procedure?
  • Next by thread: CoreMidi.h?
  • Index(es):
    • Date
    • Thread