I have several .wav files in my game that I wish to use.How do I load and play them ?Say a bullet fires and I want to play a sound e.g(bang.wav)
Use the XAudio2 object.
After adding the Xaudio2 object go to your event sheet.
Just for an example, make an "On any key pressed" and then under "New Action" select "Autoplay File". For the "AppPath" tell it where to look for the file (make sure it is in parenthesis) and replace "example.wav" with the name of your sound.
That loads the sound as you play it, though. So if it's a big file you might want to use the "Load File" instead. You use it the same but if you have a lot of big files and you don't want your game to lag you can make a "please wait...loading" screen that pops up after you choose to start your game. Use that screen to "Load File" your big sounds and *then* have your game start.
Be sure to make a note of which sound is loaded to which channel, though. (you play them by selecting "Play" and then telling it which channel you want.
Develop games in your browser. Powerful, performant & highly capable.
There's a great tutorial for implementing simple sounds the wiki.