AU Latency & Logic Live Mode
AU Latency & Logic Live Mode
- Subject: AU Latency & Logic Live Mode
- From: Martin Saleteg <email@hidden>
- Date: Sat, 22 Mar 2008 12:15:03 +0100
List,
I am having a hard time with "Live Mode" tracks in Logic. Logic calls
my plugin with the number of samples specified either by HW Buffer
Size or Process Buffer Range. Since my plugin buffers internally,
processing latency will depend on the process buffer size.
I am currently firing a PropertyChanged() to notify Logic about
changed kAudioUnitProperty_Latency, and GetLatency() gets called as a
result of that. This works fine, with one exception:
When selecting or record enabling tracks in Logic, they go into "Live
Mode". This causes the process buffer size to be equal to the
specified audio device buffer size. The only way I know about this is
when the Render() call comes with a certain buffer size. Then I can
adjust latency and report it back to Logic.
Thus - whenever a track is set to Live Mode, it will have the "old"
latency compensation value, causing it to be out of sync until the
next Play/Stop cycle (when Logic has adopted the new GetLatency()
value).
Is there any way I can know when a track is being set to Live Mode, or
any other method I can implement to know about buffer size before
actually hitting play?
Thanks,
Martin Saleteg
_______________________________________________
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