Vorbis decoder for Windows Phone 7

江枫思渺然 提交于 2020-01-01 23:32:10

问题


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.


回答1:


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.




回答2:


Ogg Vorbis is not a supported codec on Windows Phone 7 and the platform supports no way of adding support for custom codecs.

The options available are to write your own decoder/converter in managed code or to convert the original source files.
I suspect the second option will be easier.



来源:https://stackoverflow.com/questions/4820361/vorbis-decoder-for-windows-phone-7

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