Muting in-game music when user is playing music via ipod?

How would I go about doing this? Do I flag files and Unity does it automatically? Do I check if they’re playing music and mute it myself? Thanks!

There’s a “Override iPod Music” setting. It’s unchecked by default, which is what you want.

It is unchecked – I can play iPod music over my game. As far as I know, all that checkbox does is allow iPod music to continue to play when your app is running. That isn’t the problem. The problem is that my game has no idea whether this extra music is playing or not – when iPod music is playing, it doesn’t mute the in-game music and it’s obviously a mess listening to two songs at once.

Is your audio compressed? Unless I’m mistaking, or unless anything changed since I last checked, you can only play one compressed file at a time. If the user already has something playing, it won’t play your game music.

I’ve tried having my music file be .mp3 and .wav (compressed as mpeg) – compressed .wav seemed to saved me some RAM but regardless the music still plays even if there’s iPod music playing. Both are set to ‘Compressed in memory’ for load type.

Ok, maybe something changed then because I’m quite sure it used to work to have the music compressed and leaving the override setting unchecked…

Well poop

http://answers.unity3d.com/questions/5369/detecting-ipod-music-playback

Is this third party plugin really the only way to do it…?