PlaySound("beep.wav", NULL, SND_ASYNC | SND_FILENAME);
Upon exiting the program(esc kills the game), an error occurs. Is there some kind of cleanup command for PlaySound(), I tried:
PlaySound(NULL, NULL, SND_PURGE);
which kills the sound, but the error still occurs. I'm using Borland 4.5 if that helps. I do realize that using dsound is the way to go, but there has got to be a way to make this work.