I want play a wav file with XAudio2, I have searched on the internet and have some example projects like this: C# XAudio2 Sound Playback for Windows Phone or this: Play wav example but all those playing special wav files, if I replace my wav (converted to MS ADPCM, mono) then CreateSourceVoice
return HRESULT 0x88960001. So what are specials of those wav files? or any other methods to play Wav file with xaudio2 (I'm working on windows phone 8)
According to this article, the XAudio2 only supports a subset of the MS ADPCM format: http://msdn.microsoft.com/en-us/library/windows/desktop/ee415711(v=vs.85).aspx
You have to use the adpcmencode tool in the Windows 8 SDK to compress it into something useable