title: Windows CE - The wave header is corrupt
body: <p>I search all the Internet and yet didn't find a solution to my problem. I want just to play a sound from a resource, but it always, always gives me <code>The wave header is corrupt</code>. I saw several workarounds to solve this, like to set the <code>Stream.Position</code> to 0, nullify the <code>Stream</code> and after reload the sound, but it yet doesn't work. The piece of my code is this:</p>
  
  <pre><code>case TipoEvento.Erro:
      SoundPlayer player = new SoundPlayer(); 
      Stream sound = new MemoryStream(Properties.Resources.cow_single_cow_mooing);
      sound.Position = 0;
      player.Stream = null;
      player.Stream = sound;
      player.Play();
      break;
  </code></pre>
  
  <p>First i instantiate a <code>SoundPlayer</code>, then I read the bytes of the mp3 file I want to play, that is in <code>Properties.Resources</code>. Then I modify some attributes and finally go play. When I try to play, then the exception is throwed. How in the world can I play a sound in Windows CE? (.NET Framework 2.5, I have no <code>File.ReadAllBytes()</code>).</p>