作者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
推 EMBA5566:感謝 解決了 不過他給的範例檔裡找不到哪裡加入了 01/15 00:35
→ EMBA5566:ikpMP3.DLL 01/15 00:36
→ hatasum:@@解決了????你怎麼解決的阿??我加入ikpMP3.dll還是不行 01/15 19:35
→ hatasum:我是在這裡下載的 01/15 19:37
→ EMBA5566:我的ikpMP3.dll檔跟執行檔放在同目錄下 01/21 02:05