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

playing wma file with XAudio2

Last post 08-11-2008 6:37 PM by Dugan. 7 replies.
  • 05-05-2008 10:56 AM

    playing wma file with XAudio2

    Hello All!
    Help me please. How to play .wma file with XAudio2? (not XACT)
  • 05-06-2008 7:34 PM In reply to

    Re: playing wma file with XAudio2

    XAudio2 (and XACT3) can only play a limited subset of WMA files which we've called 'xWMA'.  They have to be generated by the WmaEncode.exe tool we provide (or will provide) in the DXSDK/XDK.  They typically use the .XWM extension.  To play them in XAudio2 you just create a source voice with the format extracted from the XWM file, then call SubmitSourceBuffer with two arguments: the first is a regular XAUDIO2_BUFFER structure, and the second is a XAUDIO2_BUFFER_WMA structure extracted from the XWM file's 'dpds' RIFF chunk.

    Let me know if you need more details...

    Dugan Porter [MS]
    Game Audio Team

    Dugan Porter [MS]
    Game Audio Team
  • 08-08-2008 12:19 AM In reply to

    Re: playing wma file with XAudio2

    Yes I do, This sounds a bit adevanced for me. I have only inserted the path of where my .wma music files are. Both the header files in soundbank and wavebank have a path but nothing is responding. 

    I do have XACT .v2 but I can't seem to understand what you're explaining  where is the DXSDX/XDK located? 

    And Do I Have the right version?!!!

  • 08-08-2008 10:59 AM In reply to

    Re: playing wma file with XAudio2

    You cannot access XAudio2 with XACT version 2, and XACT version 2 does not support WMA.
    Jon Watte, Direct3D MVP kW X-port 3ds Max .X exporter kW Animation source code
  • 08-10-2008 10:54 PM In reply to

    Re: playing wma file with XAudio2

    Well then How do I get XAudio2? Is it a download?
  • 08-11-2008 5:38 PM In reply to

    Re: playing wma file with XAudio2

    XAudio2 is Microsoft's new(ish) low-level game audio API for both Windows XP/Vista and Xbox 360.  The xWMA audio format is a stripped down form of WMA suitable for use in games.  It has better compression ratios and sound quality than either ADPCM or XMA, at the cost of higher CPU consumption.  Support for xWMA on Windows has just been added to XAudio2 and XACT3 in the August release of the DirectX SDK, available at http://download.microsoft.com/download/8/d/1/8d1e0a50-45c4-4049-b0df-7166e71aa7ad/DXSDK_Aug08.exe.  For Xbox 360 development, xWMA support has also been added to the August XDK release, but it is only available to registered Xbox 360 developers; it is not available in XNA Game Studio Express.

    You can't use arbitrary existing WMA files in XAudio2/XACT3.  You have to create xWMA files from raw PCM (WAV) files using one of the encoder tools we provide with the DXSDK/XDK: either xwmaencode.exe, or the built-in encoding functionality in xWMA3.

    Hope that clears everything up!

    Dugan Porter [MS]
    Game Audio Team
  • 08-11-2008 5:58 PM In reply to

    Re: playing wma file with XAudio2

    Dugan:
    [...] For Xbox 360 development, xWMA support has also been added to the August XDK release, but it is only available to registered Xbox 360 developers; it is not available in XNA Game Studio Express.

    Does that mean it won't be availabe in XACT3 used XNA GS 3.0 on the 360 or does the not available in XNA Game Studio Express only mean pre 3.0 releases?

    We are boki. The rest is known.
    The not so known part of the rest: It is Björn or Bjoern, but never Bjorn.
    Björn does not stalk John Sedlak
  • 08-11-2008 6:37 PM In reply to

    Re: playing wma file with XAudio2

    Sorry Björn, I'm actually not that familiar with our plans for GS 3.0 so I can't answer this.  Hopefully someone else from Microsoft will chime in.
    Dugan Porter [MS]
    Game Audio Team
Page 1 of 1 (8 items) Previous Next