week11
下載freeglut 開啟
新增GLUT專案 輸入以下程式碼
[播放音效]
按123會發出聲音
setting -> compiler -> Linker setting -> ADDwinmm
更新後重開 複製貼上前面程式碼後
做一點改動
#include <windows.h>
#include <stdio.h>
int main(int argc, char *argv[]){
PlaySound("C:\\Users\\Administrator\\Desktop\\do-re-mi\\do.wav", NULL, SND_SYNC);
PlaySound("C:\\Users\\Administrator\\Desktop\\do-re-mi\\re.wav", NULL, SND_SYNC);
PlaySound("C:\\Users\\Administrator\\Desktop\\do-re-mi\\mi.wav", NULL, SND_SYNC);
printf("Hello World\n");}
把YOUTUBE轉MP3 在137行
將檔案夾傳到11-4資料中 修改程式碼
沒有留言:
張貼留言