AudioTimeStamp
AudioTimeStamp
- Subject: AudioTimeStamp
- From: Romain Pechayre <email@hidden>
- Date: Sat, 27 Jun 2009 11:13:08 +0200
Hello,
I'm using an audioRenderCallback for an audio unit remoteIO and I have problems with figuring out the real time out of the AudioTimeStamp pointer passed as argument to the callBack.
I am aware of the existence of the CAHostTimeBase class and I am using it. I am just wondering what time exactly is stored in this struct.
In fact, I want to know a which time the samples processed in my callback will be actually played in the future ( I mean the exact time at which the audio unit will play the first sample stored in the first buffer).
Is there a way to do this ?
I am currently doing th following :
CFTimeInterval beginTime = (Float64)CAHostTimeBase::ConvertToNanos(inTimeStamp->mHostTime) / 1000000000;
When I display the result of beginTime, it shows me some date in 2001. What am I doing the wrong way ? Should I be using another member of the struct AudioTimeStamp for my purpose ? Thank yo in advance for your help.
Cheers,
Romain
_______________________________________________
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