access transport in Logic Pro

hi, i need to read wether the transport is playing or stopped but my current method that works for vst does not work for au.
is there a lpx resource available for developers anywhere?

if (auto* playHead = processor->getPlayHead())
    {
        juce::AudioPlayHead::CurrentPositionInfo posInfo;
        if (playHead->getCurrentPosition(posInfo))
        {
            bool isCurrentlyPlaying = posInfo.isPlaying; 
            
            if (isCurrentlyPlaying != wasTransportPlaying)
            { 
                if (isCurrentlyPlaying)
                {
                   wasTransportPlaying = isCurrentlyPlaying;
                    startAllTimers();
                }
                else
                {
                    wasTransportPlaying = isCurrentlyPlaying;
                    stopAllTimers();
                 }
             }
        }
    }

thanks :)

access transport in Logic Pro
 
 
Q