作者hatasum (我很可爱)
看板C_Sharp
标题Re: [问题] MP3播放问题
时间Wed Jan 14 21:06:27 2009
※ 引述《EMBA5566 (哈佛EMBA)》之铭言:
: 在网路上找到了irrklang这个library 网址:http://www.ambiera.com/irrklang/
:
: 不过不知道为啥麽改它的范例程式MP3档都可以拨
:
: 但是我自己写就不能拨只能拨其他的wav ogg...
:
: 我知道路径若有中文的话是不能拨的
:
: 程式大概如下:
:
: using IrrKlang;
:
: ISoundEngine soundEngine = new ISoundEngine();
:
: private void button1_Click_1(object sender, EventArgs e)
: {
: soundEngine.Play2D("Z:\\xxx.mp3");
: }
:
: 不知道有没有人有用过这个library 有碰到跟我一样的问题
Playing back an mp3 doesn't work with my program using irrKlang, what did I
do wrong?
If irrKlang doesn't play mp3s in your application, you probably forgot to
copy the mp3 playback plugin to your application directory (The location
where your .exe file is). The file is named ikpMP3.DLL in windows and
ikpMP3.SO in Linux. Place it where irrKlang can find it (the current working
directory or the place where your application binary is) and irrKlang will
load the plugin and be able to play mp3s.
转至
http://www.ambiera.com/irrklang/faq.html#mp3plugin
:
:
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.169.23.145
1F:推 EMBA5566:感谢 解决了 不过他给的范例档里找不到哪里加入了 01/15 00:35
2F:→ EMBA5566:ikpMP3.DLL 01/15 00:36
3F:→ hatasum:@@解决了????你怎麽解决的阿??我加入ikpMP3.dll还是不行 01/15 19:35
5F:→ hatasum:我是在这里下载的 01/15 19:37
6F:→ EMBA5566:我的ikpMP3.dll档跟执行档放在同目录下 01/21 02:05