• 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: timestamping in AUHal renderer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: timestamping in AUHal renderer


  • Subject: Re: timestamping in AUHal renderer
  • From: Derk-Jan Hartman <email@hidden>
  • Date: Tue, 19 Apr 2005 21:44:06 +0200

On 19 apr 2005, at 13:59, Derk-Jan Hartman wrote:
I still don't have this working.
Can anyone explain me how I retrieve the time at which my sample will be rendered by the auhal renderer?
I need to provide this time to my VLC audio layer in order to get the right sample from the vlc core. This was possible in CoreAudio by using outTimestamp, but I don't see a similar method for AUHAL.
If getting the rendertime is impossible, then perhaps it's possible to get the render delay instead? VLC simply refuses if I ask for samples for the current time, or one in the past. It wants a proper rendertime.

In our coreaudio module this was calculated as:

mtime_t out_date;

host_time.mFlags = kAudioTimeStampHostTimeValid;
AudioDeviceTranslateTime( inDevice, inOutputTime, &host_time );
out_date = AudioConvertHostTimeToNanos( host_time.mHostTime ) / 1000;


In our portaudio module it's calculated as:
out_date = mdate() + (mtime_t) (1000000 * ( paDate->outputBufferDacTime - paDate->currentTime ) )

where paDate is of type PaStreamCallbackTimeInfo.

So does anyone know how to retrieve either the renderdelay or the renderdate when using AUHAL rendering?
I can't believe that there is no one willing to help me on this.


DJ

---
Universiteit Twente
Derk-Jan Hartman (d.hartman at student.utwente dot nl)
http://www.sidequest.org

_______________________________________________
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


References: 
 >timestamping in AUHal renderer (From: Derk-Jan Hartman <email@hidden>)

  • Prev by Date: Re: Minimizing input/output latency ?
  • Next by Date: Re: Minimizing input/output latency ?
  • Previous by thread: timestamping in AUHal renderer
  • Next by thread: AudioUnitSetProperty deadlock?
  • Index(es):
    • Date
    • Thread