XNA Creators Club Online
Page 1 of 1 (4 items)
Sort Posts: Previous Next

XAudio2 and compression

Last post 12/13/2008 5:54 PM by NozFx. 3 replies.
  • 11/20/2007 12:00 AM

    XAudio2 and compression

    Hi all,

    I know XAudio2 supports WMA and thats great; however, I was wondering if MP3 support is possible. If not I guess I'll have to pay for the Fmod Library and I doubt it will be as nice as XAudio2. Please have good news for me lol.

  • 11/20/2007 5:21 AM In reply to

    Re: XAudio2 and compression

    MP3 is not supported by XAudio2 / XACT. Basically because you have to pay for the license to decode MP3.
    Pandemonium, an occasionally updated blog about my game, XNA, games development, and the games industry; XapParse, a parser for XAP (XACT) files
  • 11/20/2007 2:37 PM In reply to

    Re: XAudio2 and compression

    Andy Patrick:
    MP3 is not supported by XAudio2 / XACT. Basically because you have to pay for the license to decode MP3.

     

    Thanks for the reply Andy. I'm willing to pay the $2500.00 for the license, would anyone know how hard of a task it would be to add mp3 support in XAudio2. I'd be more than willing to use wma in most cases, but I'm trying to make a media player and allot of media files are mp3.

    Thanks again for the replys.

  • 12/13/2008 5:54 PM In reply to

    Re: XAudio2 and compression

    Hi Wawrvstar,

    I know its a year on and things may have changed.  I've written an MP3 Decompressor class to play mp3's as PCM using XAudio2 on Windows platform.  Unfortuantely I do not expect this to work on XBOX as I've used an opensource Native Win32 DLL to do the decompression.  My class calls into this and returns the raw PCM data and WaveFormat object for use in XAudio2.

    I did not write this for XNA or MDX I actually wrote this using the OpenSource SlimDX library.  I'm not XBOX interested and XNA doesn't cut it for me on Windows.  What about MDX? It's finished.

    What is interesting, (I'm not an XAudio2 / XACT expert) is that there is an enumeration value for MPEG Layer3 that can be assigned to the WaveFormat instance.  I'm not sure if this means that it can decode MP3??  Has things changed in this respect or is this a SlimDX thing?

    Regards

    Richard

Page 1 of 1 (4 items) Previous Next