2015年5月21日 星期四

02160056簡瑜萱

電腦圖學
1)live house.in鄭鎧伊博士演講
2)14:50上課
3)MP3播放
4)作業需求

播放MP3
開GLUT專案

#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;
}

CMP3_MCI檔放入專案中
將聲音檔放入C:\Users\USER\Desktop\freeglut\bin中





沒有留言:

張貼留言