PlaySound plays beep sound instead of my .wav file

325 Views Asked by At

I'm making a simple console game and I'm using PlaySound() to implement a media player to play sfx of the game. However, all I can listen to is the Windows beep sound, not my intended sound. I've tried everything from putting the files into the current directory, using full path but nothing works.

PlaySound(TEXT("E:\\losing.wav"), NULL, SND_FILENAME | SND_ASYNC);
0

There are 0 best solutions below