主題:聲音/音效音樂
實做:PlaySound(), CMP_MCI.h
下載 freeglut 開啟新專案搜尋並下載WAV檔至 bin資料夾
#include <mmsystem.h>
PlaySound("baby.wav", NULL ,SND_ASYNC);
如果沒有聲音,可能是音效設定的問題。或是黨名打錯
開啟新貝殼專案
#include <stdio.h>
#include <windows.h>
#include <mmsystem.h>
int main()
{
PlaySound("baby.wav", NULL, SND_SYNC);
printf("Hello world\n");
}









沒有留言:
張貼留言