Latency and AUTimePitch
Latency and AUTimePitch
- Subject: Latency and AUTimePitch
- From: Ashley Allen <email@hidden>
- Date: Thu, 12 Jun 2008 16:00:44 -0700
Thanks Jeremy for the suggestions regarding latency and audio unit
properties. I have added calls to AudioUnitGetProperty(au,
kAudioUnitProperty_Latency,
kAudioUnitScope_Global, nil, &latency, &outDataSize) to my code to
compute the latency introduced by audio effect units on a subgraph. I
added print statements which show the latency of the effect chain for
a particular subgraph(track) and the starttime set on the
AUFilePlayer unit at the top of the subgraph(track).
I have a simple AUGraph with two subgraphs (tracks) that have
AUFilePlayer units at the end. Track 0 has an AUTimePitch unit that
is programmed to beat match with Track 1. The latency introduced by
the TimePitch unit is printed out below. I assume I set the start
time of the AUFilePlayers as shown below.
Track 0 Latency := 0.075904
Track 1 Latency := 0.000000
Track 0 startTime is being set to := 0.000000
Track 1 startTime is being set to := 0.075904
Nonetheless, my tracks are not in sync. I believe I am computing the
rate parameter correctly for the TimePitch unit. I also have the
quality set to max. What else might I be doing wrong?
Thanks again,
Ashley
_______________________________________________
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