XNA 3.0: MP3/WMA/WAV support!

So, I was a little disappointed about the XNA 3.0 CTP when I read about it. It looked like the only big feature was Zune support (being without a Zune, or any friends who have a Zune, I have quite the lack of interest in developing for it). However, after a little prodding, it looks like with Zune support comes much better media support, including the ability to import and process MP3, WMA and WAV files without going through XACT! They seem to be converted to WMA files, which is fine by me, though the options available for compression are pretty simple still.

I made an example project which shows how to process and load an MP3 song in your program:

Download the Example!

It’s pretty trivially easy, but there’s really no how-to that I could find that explains this. The big thing is the MediaPlayer class, which lets you do a lot of different things with Song classes. Check it out in the documentation for the XNA 3.0 CTP.

And of course, you’ll need the XNA 3.0 Community Technical Preview to compile and run this example.

Now, if they add FriendGamer.CurrentTitle by the next release, I’ll be happy!

2 Responses to “XNA 3.0: MP3/WMA/WAV support!”

  1. FeLiZk » Blog Archive » XNA Mp3 Understøttelse Says:

    [...] Jeg faldt lige over den her på Ziggyware. Kyle har lavet et eksempel på hvordan man bruger wmv og mp3 filer i XNA 3.0! Det kunne vi godt have brugt da vi lavede Mass Salvation, 50mb wave musik filer er ikke lige helt optimale [...]

  2. CrossedTrain Says:

    Best tutorial ever! You are cool man;)

Leave a Reply