I've been working with XNA's MediaPlayer class a lot lately, and I've come to learn many of the typical pitfalls associated with it. (Hint: There's approximately a million of them)
One of the biggest is the fact that it's so slow. I mean, it will literally slow your game to a crawl if you check Volume more than a few times every few seconds. However, I'm getting off-track here. Maybe I'll go into that in some other post.
For now, I'm going to post about something much more important. You see, XNA has this nifty feature that will mute either your Music category in XACT, or the MediaPlayer class, when the user starts to play music through the Guide. This is fantastic, and I've never had a problem with it (I'm an XACT man, myself), until I started using MediaPlayer for my Custom Playlists (so the user can play their own music in-game).
MediaPlayer pitfall #1,000,001: While MediaPlayer will mute your music when music is played through the Guide, it will not resume your music if that music from the Guide is turned off! Like a spoiled, bratty kid, it will do half of what it's told, but then firmly dig in and say "Screw you!".
So, then, how do we go about fixing this behavior?
My entry for Microsoft’s annual Dream.Build.Play contest is finally ready!
Space Crüesader is a twin-stick space shooter, and, incidentally, my very first game. It’s been a labor of love for some time now, and I’m excited to finally be able to show it off. It’s 99% completed, I just have a few more finishing touches, but overall it’s in the state it will ship in later this year.
If you’re interested, you can read more about the game and see its trailer at the game’s product page, located over here.