title: c# Soundplayer doesnt play full .wav file cuts right in it
body: <p>Im trying to add a sound to my c# console app but the problem is that when the sound is supposed to start playing you can hear the sound starting but it cuts like right into it and the full sound is not finished. There is no errors with the file path because it points on the wav file. But weird thing is if i add a second PlaySync(), the first sound is cut... but the second plays the audio file in full.</p>
  <p>Any guiddance how i could solve this? i want to be able to play the full audio at first.
  Thank you</p>
  <pre><code>        public static void playSound()
          {
              string workingDirectory = Environment.CurrentDirectory;
              string projectDirectory = Directory.GetParent(workingDirectory).Parent.Parent.FullName;
              SoundPlayer player = new SoundPlayer();
              player.SoundLocation = projectDirectory + &quot;/Sounds/9098__ddohler__typewriter.wav&quot;;
              player.PlaySync();
              Console.ReadKey();
          }
  
  
  
  
  
          public static void playSound()
          {
              string workingDirectory = Environment.CurrentDirectory;
              string projectDirectory = Directory.GetParent(workingDirectory).Parent.Parent.FullName;
              SoundPlayer player = new SoundPlayer();
              player.SoundLocation = projectDirectory + &quot;/Sounds/9098__ddohler__typewriter.wav&quot;;
              player.PlaySync();
              player.PlaySync();
              Console.ReadKey();
          }
  </code></pre>