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