Hi all,
I'm not sure if this is the right forum or not, but I didn't find a more relevant one. If you know, then please suggest.
I developed an Audio Unit. The processing introduces a latency. The latency support assumes a host (Premiere Pro) provides some extra sound data at the end of a stream to pop-out all the delayed audio from a plugin. If a plugin introduces a latency of 4096 samples then it expects to get 4096 extra samples at the end.
This works fine in Premiere Pro when sequence's and clip's samplerates are the same. Once I put a 44100 Hz clip in a sequence and change sequence settings to 48000 Hz then Premiere Pro starts handling the latency incorrectly. It does output just 44100/48000 = 0,91875 of the required extra samples at the end.
The things get bad is we split a clip somewhere in the middle. The continuity of a clip gets broken because of the issue.
I did lot of tests and I believe there is a bug in Premiere Pro. Audio Units return latency in seconds and I believe the returned value by mistake gets multiplied by the coefficient mentioned above.
I hope this message will get delivered to Premiere Pro developers team and they could fix this.
Thanks,
Roman