Windows phone 8 xaudio2 wav 文件问题 [英] Windows phone 8 xaudio2 wav file issue
问题描述
我想用 XAudio2 播放 wav 文件,我在互联网上搜索并有一些这样的示例项目:Windows Phone 的 C# XAudio2 声音播放 或:播放 wav 示例 但所有播放特殊 wav 文件的人,如果我替换我的 wav(转换为 MS ADPCM,单声道)然后 CreateSourceVoice
返回HRESULT 0x88960001.那么这些 wav 文件有什么特别之处呢?或任何其他使用 xaudio2 播放 Wav 文件的方法(我正在使用 Windows Phone 8)
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)
推荐答案
根据本文,XAudio2 仅支持 MS ADPCM 格式的一个子集:http://msdn.microsoft.com/en-us/library/windows/desktop/ee415711(v=vs.85).aspx
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
您必须使用 Windows 8 SDK 中的 adpcmencode 工具将其压缩为可用的内容
You have to use the adpcmencode tool in the Windows 8 SDK to compress it into something useable
这篇关于Windows phone 8 xaudio2 wav 文件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!