从.NET code播放MP3 [英] Play MP3 from .net code

查看:177
本文介绍了从.NET code播放MP3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要结婚了本周六(2009年5月30日)。我们是穷人。而不是雇用一个DJ所以,我想告诉朋友,从一台笔记本电脑揭开序幕的MP3播放列表,通过扩声系统进行播放。

I am getting married this coming Saturday (May 30 2009). We are poor. So, instead of hiring a DJ, I want my friend to kick off mp3 playlists from a laptop to be played through a PA system.

嗯,我有一个梦想,对于一些软件,将是完美的这一点。这里是一个愿景: 替代文字/

Well I had a vision for some software that would be perfect for this. Here is that vision:

我希望这是使我的朋友不能搞砸了,我想,如果我的视力是一个现实那么就不会有搞砸了。

I want this to be so that my friend can't screw this up and I think that if my vision were a reality then there would be no screwing up.

而现在的编程问题?我怎么能播放MP3的从.NET code?我目前正在尝试用n音讯,但我不知道是否我可以让它淡入/淡出的文件。

And now for the programming question? How can I play mp3's from .net code? I am currently experimenting with NAudio, but I don't know if I can make it fade the files in/out.

还有没有其他的免费图书馆在那里,可以帮助我?感谢您的任何输入。时间是最重要的。

Are there any other free libraries out there that could help me? Thanks for any input. Time is of the essence.

专注于编程的问题!如果我需要和音频在今后的工作中,你的答案可能是钥匙到我的命运。

Focus on the programming question! If I ever need to work with audio in the future, your answers could be the keys to my destiny.

推荐答案

你所描述的是什么样如iTunes和Windows Media Player的功能程序的声音有好几年了,我会建议只用这两个程序之一。但是,如果你想从.NET播放MP3,谷歌搜索找到了我这一点:<一href="http://www.$c$cproject.com/KB/audio-video/mp3player.aspx">http://www.$c$cproject.com/KB/audio-video/mp3player.aspx这:<一href="http://www.$c$cproject.com/KB/audio-video/ManWMF.aspx">http://www.$c$cproject.com/KB/audio-video/ManWMF.aspx

What you're describing sounds like functionality programs like iTunes and Windows Media Player have had for years, and I would recommend just using one of those two programs. However, if you do want to play MP3s from .NET, a Google search found me this: http://www.codeproject.com/KB/audio-video/mp3player.aspx and this: http://www.codeproject.com/KB/audio-video/ManWMF.aspx

另外,如果你的婚礼是在4天,这可能不是最好的主意。我不会浪费你的时间写一个媒体播放器。如果你希望它是抛光和傻瓜,使用iTunes。如果你想编写一个媒体播放器,你的婚礼之后做到这一点。

Also, if your wedding is in 4 days, this probably not the best idea. I wouldn't waste your time writing a media player. If you want it to be polished and idiot-proof, use iTunes. If you want to write a media player, do it after your wedding.

这篇关于从.NET code播放MP3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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