PlaySound("./backgrounMusic.wav", NULL, SND_ASYNC ) //this is my main music for my game
PlaySound("./buttonEffect.wav", NULL, SND_FILENAME | SND_ASYNC);
I am developing a videogame using C++ and OpenGL and Visual Studio 2015, I am trying to play a background music in a menu, but I am having problems because also I have a sound effect when I press a button but the problem is that when I press a button, the sound effect of the button stops my background music ("backgrounMusic.wav").
Is there a way to prevent this? I want that the background music keeps playing although a button is pressed.