title: Getting a media file from resources
body: <p>I have added a notification sound for some text message as a reference of the Main file of my project and try to make it work as follows</p>
  
  <pre><code>System.Reflection.Assembly a = System.Reflection.Assembly.GetExecutingAssembly();
  System.IO.Stream s = a.GetManifestResourceStream("SignInSound.wav");
  System.Media.SoundPlayer player = new System.Media.SoundPlayer(s);
  player.Play();
  </code></pre>
  
  <p>I have the sound played, but it is not absolutely the one I added. Instead standard windows sound is played. 
  Any ideas?</p>
  
  <p><strong>Update</strong></p>
  
  <p>The issue is in getting the file from resources</p>
  
  <pre><code>System.Reflection.Assembly a = System.Reflection.Assembly.GetExecutingAssembly();
  System.IO.Stream s = a.GetManifestResourceStream("SignInSound.wav");
  </code></pre>