Windows Phone xaudio2

与世无争的帅哥 提交于 2019-12-01 11:18:46

问题


Hej

I am using a library for playing audio in Windows Phone found here. Which works fine.

I am then trying to add a new .wav file to this system. And I get a memory error. Searching around on the internet gives me that I have to encode the audio using AdpcmEncode command-line tool. However using this tool cannot convert my .wav files. Can anyone help here, regarding encoding to get the audio working?

Furthermore just for my information how big can my audio files be? I think I read some place 20 mb, but unsure.


回答1:


Encoding is a bitch. Even with me having the tool and .wav files I did not succeed in getting audio played. From new .wav files that was not included.

But finally I succeeded and seems there is no problem with big audio files 100mb.

So what I needed to do was to first run the audio file through a program called Free Audio Converter. And then use the cmd line tool Adpcmencode, and it was possible to use in the sample project.



来源:https://stackoverflow.com/questions/21780644/windows-phone-xaudio2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!