Windows Phone xaudio2 [英] Windows Phone xaudio2

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

问题描述

嘿嘿

我正在使用一个库在 Windows Phone 中播放音频,发现 此处.哪个工作正常.

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

然后我尝试向该系统添加一个新的 .wav 文件.我得到一个内存错误.在互联网上搜索让我不得不使用 AdpcmEncode 命令行工具对音频进行编码.但是,使用此工具无法转换我的 .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 mb 的地方,但不确定.

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.

所以我需要做的是首先通过一个名为 Free Audio Converter 的程序运行音频文件.然后使用cmd行工具Adpcmencode,就可以在示例项目中使用了.

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天全站免登陆