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

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

  • Prev by Date: Re: AudioConverter footprint
  • Next by Date: Re: AudioConverter footprint
  • Previous by thread: Audio Level Metering with iPod Application
  • Next by thread: AUGraph, multiChannelMixer inputs
  • Index(es):
    • Date
    • Thread