#include "windows.h" #include "mmsystem.h" void play() { PlaySound(TEXT("sound.wav"), NULL, SND_FILENAME); // plays sound.wav once }