2019年5月10日 星期五

05160071_week12

開啟codeblocks
專案Console application


#include <windows.h>
#include <mmsystem.h>

int main()
{
    PlaySoundA("C:\\Users\\user\\Downloads\\Wave.wav", NULL, SND SYNC);
    \\\播放聲音        聲音名稱字串                                          空     聲音等待同步  
    return 0;
}




右鍵另存連結








把重要程式碼複製到glut專案中

 #include <mmsystem.h>

PlaySoundA("C:\\Users\\user\\Downloads\\Wave.wav", NULL, SND SYNC);



沒有留言:

張貼留言