• 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: coreaudio-api digest, Vol 1 #146 - 10 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coreaudio-api digest, Vol 1 #146 - 10 msgs


  • Subject: Re: coreaudio-api digest, Vol 1 #146 - 10 msgs
  • From: "David A. Gatwood" <email@hidden>
  • Date: Mon, 3 Dec 2001 15:31:31 -0800 (PST)

On Mon, 3 Dec 2001, Bill Stewart wrote:

> It might be interesting to post these to the list.
>
> We worked out a scheme for these values ourselves in 10.1 and it would be
> interesting to see how you've worked this.

What I have so far is just a first revision. I came up with a best guess
based on percentage of CPU cycles the relevant thread used when working
correctly, multiplied that percentage into bus cycles, added a little
padding, and went with it. It's a good approximation for machines with
a 133 MHz system bus. It also works quite well at 100 MHz, largely by
accident and a little buffering.

Before I post the code, I'd like to try to get the bus speed and do the
math correctly on a per-machine basis, but I'm having problems with
sysctlbyname. I need to go bug some engineers over in the next building,
and I'll get back to you. :-)


Later,
David

---------------------------------------------------------------------
Check out my weekly web comic:
http://www.techmagazine.org


  • Follow-Ups:
    • Re: coreaudio-api digest, Vol 1 #146 - 10 msgs
      • From: "David A. Gatwood" <email@hidden>
References: 
 >Re: coreaudio-api digest, Vol 1 #146 - 10 msgs (From: Bill Stewart <email@hidden>)

  • Prev by Date: Re: Type redefinitions
  • Next by Date: Re: coreaudio-api digest, Vol 1 #146 - 10 msgs
  • Previous by thread: Re: coreaudio-api digest, Vol 1 #146 - 10 msgs
  • Next by thread: Re: coreaudio-api digest, Vol 1 #146 - 10 msgs
  • Index(es):
    • Date
    • Thread