title: Soundplayer is stopping before the end of the wav file
body: <p>I am working with Visual C++ 2010 Express I’ve got Windows's <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/dd743680%28v=vs.85%29.aspx" rel="nofollow"><code>PlaySound</code> API function</a> playing <code>c:\music.wav</code>.</p>
  
  <p>The sound stops before the end. If I replace <code>C:\music.wav</code> with a different <code>.wav</code> file (overwrite it) soundplayer stops at a different point, but at the same point depending on the <code>.wav</code> file that replaced <code>c:\music.wav</code>. i.e </p>
  
  <ol>
  <li>copy 1.wav c:\music.wav click program stops 5 seconds in does not reach the end</li>
  <li>copy 2.wav c:\music.wav click program stops 30 seconds in does not reach the end</li>
  <li>Repeat step 1 sound stops again 5 seconds in.</li>
  <li>Repeat setp 2 sound stops again 30 seconds in.</li>
  </ol>
  
  <p>Can anyone help?</p>
  
  <p>C++ code is:</p>
  
  <pre><code>PlaySound(TEXT("c:\\Music.wav"), NULL, SND_SYNC);
  </code></pre>