MP3 播放
1.今天也是開啟一個 freeglut 專案
選擇 openglut
2.再來就是打以下的程式碼
#include <iostream>
#include <GL/glut.h>
#include "CMP3_MCI.h" ///這裡記得要把 CMP3_MCI.h 這個檔案放到我們自己建的專案中
CMP3_MCI myMP3;
using namespace std;
int main()
{
myMP3.Load("GunsNRoses.mp3"); ///這裡是放想要放的mp3檔案, 記得要放在freeglut的bin資 料夾
myMP3.Play();
cout << "Hello world!" << endl;
int a;
cin >> a;
return 0;
}
<1>把 CMP3_MCI.h 這個檔案放到我們自己建的專案中
3.這個是可以把影片轉為MP3檔的網站~~~
4.這是點進去後的樣子




沒有留言:
張貼留言