In my plugin I used audioPlayHead->getCurrentPosition(currentPositionInfo) to get current time in samples, then a weird thing happened…
When I played from the same position in DAW, for example, 00:00:00.000 in Pro Tools, I got a negative value from the function above, like -418…
Then I did it again, it still returned a negative but different value, like -66…
The value was different each time, but they were all negative.
I tried in many DAWs: Nuendo for Win, Audition for Win/Mac, Pro Tools for Win/Mac, both VST and AAX, but the results were still the same…
I think it should always return where it exactly is, namely 0.
So why did this happen? Any special mechanism about DAW or JUCE? Is there a way to fix the value?
