适用于 Windows Phone 7 的 Vorbis 解码器 [英] Vorbis decoder for Windows Phone 7

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

问题描述

有人知道可以在 Windows Phone 7 上使用的 vorbis 解码器库吗?

缺少本机代码互操作使重用任何本机代码实现变得困难(不可能?)但如果有技巧可以做到这一点,我也愿意接受.

解决方案

mono 有一个托管实现,名为 csvorbis,它包括一个输出 wav 文件的示例,该文件不需要很多更改即可与 XNA 的 SoundEffect 类.我一次完成了一整首曲目,这在模拟器中花费了几秒钟,因此您可能需要使用 DynamicSoundEffect 对其进行流式传输以获得更好的效果.mooncodecs 文件夹有一个基于 csvorbis 的桌面版编解码器,值得一看.>

Anyone know of a vorbis decoder library that can be used on Windows Phone 7?

The lack of native code interop make re-using any of the native code implementations difficult (impossible?) but if there are tricks to do that, I'm open to that as well.

解决方案

There is a managed implementation for mono called csvorbis, it includes a sample which outputs a wav file this didn't need many changes to work with XNA's SoundEffect class. I did a whole track at once, this took a few seconds in the emulator so you may need to stream it using DynamicSoundEffect for better results. The mooncodecs folder has a codec for the desktop version based on csvorbis which may be worth a look aswell.

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

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