I'm developing a tweak in theos, I'm not exactly sure how to check if the iPod is playing music, can someone please point me in the right direction, idk what I tried using MPMusicPlayer but it puts it in SafeMode, idk if I was using it wrong or what though

thanks for any help