PlaySound in C beeps but does not play wav file
In C, my PlaySound is not throwing any errors... but instead of playing the file I want, it just beeps. Any suggestions? I tried : PlaySound("song1.wav", NULL, SND_ALIAS | SND_APPLICATION); And: PlaySound("song1.wav", NULL, SND_FILENAME); But I got the same result. Instead of using relative path like you have done: PlaySound("song1.wav", NULL, SND_FILENAME); Use an absolute path like: PlaySound("F:\\path\\to\\your\\song\\song1.wav", NULL, SND_FILENAME); Quote from PlaySound API description, at msdn.microsoft.com: PlaySound searches the following directories for sound files: the current