Re: coreaudio-api digest, Vol 1 #146 - 10 msgs
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