i want make game with sound in it. i found code about play wav in c++. the program work, but that make my game not looping??
1 2 3 4 5 6 7 8 9 10 11 12 13
#include <iostream>
#include <windows.h> // for PlaySound()
usingnamespace std;
int main()
{
// play sound as loop (remove SND_LOOP for one time play)
// file boing.wav has be in the working directory
PlaySound("SpaceInvaders.wav",NULL,SND_FILENAME|SND_NOWAIT|SND_ASYNC);
cin.get(); // wait
return 0;
}