AUv3 change latency on reset

I'm having an AUv3 that has a different latency everytime playback (re)starts. So what I need to do is notify the AU host (in my case Logic Pro X) of the changed latency in the call of its reset method.


For AUv2 I found that this can be done using the PropertyChanged notification on the kAudioUnitProperty_Latency property. Is there a similar way for audio units of version 3?

Post not yet marked as solved Up vote post of mackcmillion Down vote post of mackcmillion
1.2k views

Answers

You can add a getter for the latency property in your AUAudioUnit subclass, this is bridged to the version 2 kAudioUnitProperty_Latency API.

See:-
https://developer.apple.com/documentation/audiotoolbox/auaudiounit/1387675-latency