I am trying to load a .wav file into memory so that I can play it using the PlaySound function.
Currently, I am able to play the sound with this line of code.
PlaySound(TEXT("C:\\DEV\\beep-07a.wav"), NULL, SND_FILENAME);
The problem is I am also displaying graphics when the sound is made, and when the sound plays, the graphics freeze while it is being played. I am assuming that this is due to the fact that the .wav file is being read from the disk each time it is played, and not from memory.
I did some searching and see that I can either load the file directly into my memory buffer or can use a resource file to do this, but I was unable to find any good resources on how to do this, so any help is greatly appreciated!