• 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: Speeding HAL plugin loop rate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Speeding HAL plugin loop rate


  • Subject: Re: Speeding HAL plugin loop rate
  • From: Jeff Moore <email@hidden>
  • Date: Tue, 06 Jan 2009 12:31:00 -0800

How are you measuring this? It sounds like you are just counting time between calls to an IOProc, which is not the way to track the time since those measurements would include any scheduling latency.

FWIW, the timing code the the SampleHardwarePlugin does all it's math assuming a rate scalar of 1.0. You can see this in how SHP_Device::TranslateTime is implemented.


On Dec 16, 2008, at 5:49 AM, Mike Kluev wrote:

I based my HAL plugin on the SampleHardwarePlugin sample and noticed that
it's work loop is called slightly less frequent than desired (e.g. 43945 Hz on
average while 44100 is wanted). That's with all my logic commented, so it
doesn't contribute to timing. What should I do to speed it up?



--

Jeff Moore
Core Audio
Apple


_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: SampleHardwareDriver bug?
  • Next by Date: Re: HAL plugin I/O format
  • Previous by thread: Re: SampleHardwareDriver bug?
  • Next by thread: Re: Speeding HAL plugin loop rate
  • Index(es):
    • Date
    • Thread