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

Calculating AU latency


  • Subject: Calculating AU latency
  • From: Evan Olcott <email@hidden>
  • Date: Sun, 8 May 2005 14:13:10 -0500

Working with a new Apple AU (AUTimePitch - thank you Apple!!), and I'm trying to compensate for the latency the AU inherently has.

I ask for the latency property via:

Float32 latency;    
UInt32 dataSize = sizeof(latency);
err = AudioUnitGetProperty(stretcherAudioUnit, kAudioUnitProperty_Latency, kAudioUnitScope_Global, 0, & latency, &dataSize);

...to find that the value I get is a floating point number which varies every time, mostly at the 1.2 - 1.4 range.

I tried applying this number against the number of frames (256), but didn't really get a helpful number.

I want to skip over the "blank audio" at the top before I start putting my resulting AU output to my file, so a latency in terms of samples is what I'm looking for... how do I calculate it from this property, or is this the way to find the latency at all?


Ev
Technical Knowledge Officer
Head Programmer/Designer
Audiofile Engineering

http://www.audiofile-engineering.com/


 _______________________________________________
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

  • Follow-Ups:
    • Re: Calculating AU latency
      • From: Chris Rogers <email@hidden>
  • Prev by Date: RE: Working with Input and output Device
  • Next by Date: working with the CoreAudio AudioUnits MyVolumeUnit Tutorial
  • Previous by thread: Oops - Re: Noob question: sending button clicks to AudioUnits?
  • Next by thread: Re: Calculating AU latency
  • Index(es):
    • Date
    • Thread