Detecting if hardware decoding is available

Anybody know if there’s a way for me to check via script if the iOS hardware decoder is currently free to use, or specifically if the iPod is playing at the moment? My previous games have all been released with older versions of Unity, so if the iPod was playing my in-game MP3 music was simply overridden by it. I actually prefer this functionality over the automatic fallback to CPU decoding that occurs with modern Unity, since now if a user is playing their iPod music my in-game music will just play right on top of it unless I provide a means for the user to manually disable it.

Do we have access to something like… if (iPodIsPlaying) { audio.Play(); } ?

There’s the “Override iPod Music” in the player settings and “hardware decoding” in audio import settings. I would assume that if the former if false and the latter true, the clip would not play if the iPod music is playing.

You will need a plugin to check it but if you do its rather easy as you can check it the the media player framework by checking the global MP if it is running. if it isn’t, then it can only be your app.

that being said, I’m unsure if fmod in u3 and 3.1 actually is capable to use the hw decoder at all