Google:NeHe Lesson 32 下載Lesson32最下面
Visual c++

2.聲音程式碼
TODO:在Lesson32.cpp中用PlaySound(...)
加入#include <mmsystem.h>//多媒體系統
void mouse(int button, int state, int x,int y)
{
PlaySound("C:\\users\\user\\Desktop\\lesson32\\Data\\shot.wav",NULL,SND_ASYNC);///Copy this line
}
glutMouseFunc(mouse);

沒有留言:
張貼留言