Re: TimeStamps.
Re: TimeStamps.
- Subject: Re: TimeStamps.
- From: Jeff Moore <email@hidden>
- Date: Wed, 10 Apr 2002 12:29:28 -0700
on 4/10/02 9:27 AM, Ken Wieschhoff <email@hidden> wrote:
>
Is there a method to convert a AudioTimeStamp into a duration? I'm
>
trying to sync a video track with an audio track and I'd like to dump
>
the AudioTimeStamps into some form I'm familiar, e.g. nanoseconds
>
since system start, etc. to find a drift problem I'm having.
The time stamps the HAL provides give you the same point in time represented
two different ways. The mSampleTime field is a sample counter that runs at
the rate of the device. The mHostTime field is a counter that runs at the
bus speed of the machine. The routines in <CoreAudio/HostTime.h> describe
this clock programmatically and provide for conversion to and from
nanoseconds.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
References: | |
| >TimeStamps. (From: Ken Wieschhoff <email@hidden>) |