简体   繁体   中英

Windows Phone xaudio2

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM