Re: When is sample number zero ?
Re: When is sample number zero ?
- Subject: Re: When is sample number zero ?
- From: James McCartney <email@hidden>
- Date: Tue, 06 Nov 2001 22:21:09 -0600
on 11/6/01 2:34 PM, Jeff Moore at email@hidden wrote:
>
I'm just saying that you shouldn't count on the actual values themselves in
>
any absolute way. Use the distances between them for measuring stuff.
If it is not something to worry about then that is OK. It helps to know what
is going on. Back when every card had its own API, most gave you some way to
prefill the buffer for time zero before starting. CoreAudio goes the other
way and doesn't even let you begin until things are already rolling. So that
makes one want to know why. I'm satisfied for now.
Also related to time:
For my application I need to relate core audio time to gettimeofday time.
The only way I know how to do this is to bracket gettimeofday() between
AudioGetCurrentHostTime() calls for some number of iterations choosing the
smallest interval and then just fudge that gettimeofday() (which happens to
be a relatively slow call) occurred halfway in between. From that I can
calculate an offset to host time.
If there is a better way, I'd like to know it.
--- james mccartney email@hidden <
http://www.audiosynth.com>
SuperCollider - a real time synthesis programming language for the PowerMac.
<
ftp://www.audiosynth.com/pub/updates/SC2.2.10.sea.hqx>