2017年11月23日 星期四

wk11

#include<mmsystem.h>這行要include否則playsoundA不能用
                         檔名                     不等 馬上繼續
PlaySoundA("file.wav",NULL,SND_ASYNC);
                                                        等這個跑完才跑下一行
                                                   SND_SYNC
接下來用CMP3_MCI.h
音樂檔要丟在freeglut的bin理

#include<GL/glut.h>
#include<mmsystem.h>
#include<stdio.h>
#include"CMP3_MCI.h"
CMP3_MCI mp3;
int main()
{
         mp3.Load("file.mp3");
         int a;
         scanf("%d",&a);
}
     

沒有留言:

張貼留言