Windows Phone的xaudio2 [英] Windows Phone xaudio2

查看:219
本文介绍了Windows Phone的xaudio2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HEJ

我使用的是库中的Windows Phone播放音频发现的这里
它工作得很好。

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

我再尝试一个新的.wav文件添加到该系统中。而我得到一个内存错误。在互联网上搜索周围给我,我要带code。使用AdpcmEn code命令行工具音频。不过在使用这个工具不能将我的.wav文件。任何人都可以在这里帮助,对于编码得到的音频工作?

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?

此外只是我的信息有多大我可以音频文件是什么?我想,我看了一些地方20万桶,但不确定。

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

推荐答案

编码是个婊子。即使我有工具和.wav文件我没有得到出场的音频成功。从新.wav文件没有包含。

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.

但最后我成功了,似乎有大的音频文件100MB没有问题的。

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

所以,我需要做的是先运行通过一个叫做免费音频转换器程序的音频文件。然后使用CMD行工具Adpcmen code,这是有可能在样本项目中使用。

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.

这篇关于Windows Phone的xaudio2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆