(2)mp3播放
(3)作業需求
播放mp3
將CMP3_MCI.h檔與音樂檔放進專案資料夾中
code:
#include<iostream>
#include<GL/glut.h>
#include "CMP3_MCI.h"
CMP3_MCI myMP3;
using namespace std;
int main()
{
myMP3.Load("RickyMartin.mp3");
myMP3.Play();
cout<<"Hello world!"<<endl;
int a;
cin>> a;
return 0;
}
沒有留言:
張貼留言