In my implementation of the AudioProcessor::processBlock function, I’m trying to get the accurate sample position of the processed block (relatively to the timeline of the host).
I observe that such information is obtained in the VST, RTAS, AudioUnit wrappers, however these are only transitory info, and are not made available to the final AudioProcessor which is available to the juce library user (plug-in developer).
In VST, this is available through the getTimeInfo call (see juce’s VST wrapper).
In RTAS, this is available through the GetCurrentRTASSampleLocation call (or GetCurrentTDMSampleLocation if not playing) (see juce’s RTAS wrapper).
In AudioUnit, this is available through the CallHostTransportState call (see juce’s AudioUnit wrapper).
In AAX, this should be available through a GetCurrentNativeSampleLocation call (not double checked yet).
Is it possible to add such a “current sample location” field into the AudioPlayHead::CurrentPositionInfo structure so that the getCurrentPosition() calls of the various wrappers can deliver this info to the AudioProcessor class?
Thanks for your support! All the best