title: use PlaySound() in C++/OpenGL to play sound in background
body: <p>I am trying to play a wav file in the background of a game built in c++ with opengl. I am using the following line to play the wav file:</p>
  
  <pre><code> PlaySound("starwars.wav", NULL, SND_FILENAME|SND_LOOP);
  </code></pre>
  
  <p>The problem is when the music starts the animation stops. I tried starting the music at the press of a keyboard button, but when I do that the music starts and the all the animation stops. Is there a way to avoid this? I just want some music to play in the background and PlaySound seemed the simplest way to achieve that, given the fact it requires just a line of code.</p>