Re: [問題] MP3播放問題

看板C_Sharp作者 (我很可愛)時間15年前 (2009/01/14 21:06), 編輯推噓1(105)
留言6則, 2人參與, 最新討論串2/2 (看更多)
※ 引述《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

01/15 00:35, , 1F
感謝 解決了 不過他給的範例檔裡找不到哪裡加入了
01/15 00:35, 1F

01/15 00:36, , 2F
ikpMP3.DLL
01/15 00:36, 2F

01/15 19:35, , 3F
@@解決了????你怎麼解決的阿??我加入ikpMP3.dll還是不行
01/15 19:35, 3F

01/15 19:37, , 5F
我是在這裡下載的
01/15 19:37, 5F

01/21 02:05, , 6F
我的ikpMP3.dll檔跟執行檔放在同目錄下
01/21 02:05, 6F
文章代碼(AID): #19RUDK7j (C_Sharp)
文章代碼(AID): #19RUDK7j (C_Sharp)