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

ASSERT in XAudioD2_4.dll when playing xWMA stereo files

Last post 18/09/2009 16:38 by Iveco. 1 replies.
  • 25/08/2009 15:07

    ASSERT in XAudioD2_4.dll when playing xWMA stereo files

    Hello,

    I have a problem with the playback of stereo files with sample frequency of 44,1khz or 48khz encoded to xWMA.
    Mono xWMA files do work fine and stereo up to 32khz. But files with 44,1/48khz always crash with an ASSERT as soon as the WAVEFORMATEX is sent to CreateSourceVoice().

    I am using the DirectX March 2009 SDK.

    ################################################################################
    ### XAUDIO2: x2voicewma.cpp:223:
    ### ASSERT FAILED: InputWMAFormatInfo.wmaFormat.nBlockAlign == pSourceFormat->nBlockAlign
    ################################################################################

    Here are some example values for the Format (WAVEFORMATEX) within the WAVEFORMATEXTENSIBLE:

            wFormatTag        353
            nChannels           2
            nSamplesPerSec   44100
            nAvgBytesPerSec  65488500
            nBlockAlign          1485
            wBitsPerSample    16
            cbSize                 0

    Anyone might have an idea what's the cause of this? I am using the xwmaencode.exe tool. I tried calculating the nBlockAlign value manually or directly using the information from the format header.

    Anyone might have a hint? Are 44,1khz or 48khz stereo files for xWMA not yet supported?
    Regards from Germany
  • 18/09/2009 16:38 In reply to

    Re: ASSERT in XAudioD2_4.dll when playing xWMA stereo files

    The problem has been solved. nAvgBytesPerSec in the WAVEFORMATEX wasn't correctly calculated.
    Regards from Germany
Page 1 of 1 (2 items) Previous Next