we need the position of the audio play head in our VST plugin's GUI. We need it even when there is no processing.
AudioPlayHead::getCurrentPosition()' documenation states:
This method must ONLY be called from within your AudioProcessor::processBlock() method. Calling it at any other time will probably cause a nasty crash.
The problem is: On some hosts processBlock is not always called but we need timeInSamples at any point of time.
How dangerous is it to call AudioPlayHead::getCurrentPosition on the GUI thread? And why is it dangerous?
So far we had no crash.