Reading the documentation, we are not to call this method outside of our processBlock method. What would be the best way for a user to interact with a button and get the timecode to display in the GUI? Currently, I have getCurrentPosition(currentPositionInfo) in the processBlock, but then a pointer from the GUI class pointing to currentPositionInfo, that is dereferenced when a button on the GUI is clicked. Something about this still feels wrong. Would this still be considered dangerous?
I’m also having issues obtaining any information from AU relating to getCurrentPosition, this could be because the way I set it up might be incorrect, but I also read other forum threads who had issues with GarageBand, Logic, and other AU DAWs / sequencers when getting playhead position.