WP7同时播放多个COM pressed(MP3,WMA等)的音频文件/动态 [英] WP7 play many compressed (mp3, wma etc) audio files simultaneously/dynamically

查看:114
本文介绍了WP7同时播放多个COM pressed(MP3,WMA等)的音频文件/动态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关大小的原因,我需要捆绑与COM pressed音频(MP3,WMA等),一个WP7应用程序。我如何玩这些自由/同步?

For size reasons I need to bundle a WP7 app with compressed audio (mp3, wma etc). How do I play these freely/simultaneously?

在XNA框架只支持WAV文件,因此除非有一个纯C#托管code库某处DECOM preSS MP3 / WMA / OGG(?)上飞,下一个选项是..

The XNA framework only supports WAV files, so unless there is a pure C# managed code library somewhere to decompress mp3/wma/ogg (?) on the fly, the next option would be...

MediaElement的。但我没有得到良好的结果的MediaElement。看来你需要专门添加的MediaElement作为一个XAML标记,您不能使用多个实例(多个变量)。只要我发挥了一定的MediaElement我不能再踢的MediaElement在同一页上。我没有找到在参考的限制任何东西(参考很空)。
我也尝试动态创建的MediaElement对象,但是这似乎并没有有效的所有,还是我只是不能让它在所有播放的文件。

MediaElement. But I don't get good results with MediaElement. It seems that you need to add a MediaElement specifically as a tag in the xaml, and you can't use several instances (several tags). As soon as I play a certain MediaElement I can't play another MediaElement on the same page. I don't find anything about a restriction in the reference (the reference is very empty). I also tried dynamically creating MediaElement objects, but that doesn't seem valid at all, or I just cannot get it to play the files at all.

推荐答案

在我的经验,目前有这个问题没有很好的解决方案上的WP7。无论您使用wav文件与XNA和成长的XAP的大小或使用的MP3与非常有限的MediaElement functionalty,牺牲什么,你可以用它实现。

In my experience currently there's no good solution for this on WP7. Either you use wavs with XNA and grow the size of the xap or use mp3s with the very limited MediaElement functionalty, compromising on what you can implement with it.

您的可能的能够端口一些 C#音频库来WP7 ,我还没有听说过任何到目前为止,所以它可能是远投。

You might be able to port some C# audio libraries to WP7, I haven't heard of any so far so it might be long shot.

在我的应用程序之一,我终于决定去与WAV + XNA组合玩弄不同的选项了好一会儿了。

In one of my apps I finally decided to go with the wav + XNA combination after playing around with different options for a good while.

这篇关于WP7同时播放多个COM pressed(MP3,WMA等)的音频文件/动态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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