• 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: TimeStamps.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: TimeStamps.
  • Next by Date: Re: Audio Threads
  • Previous by thread: Re: TimeStamps.
  • Next by thread: Detecting AltiVec in kernel land
  • Index(es):
    • Date
    • Thread