There is a hello.wav that I embeded in my program, and played with below code:
Stream WavStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("hello.wav");
System.Media.SoundPlayer WavPlayer = new System.Media.SoundPlayer();
WavPlayer.Stream = WavStream;
WavPlayer.Play();
this program is OK on Win7 but when it run on WinXp, sometime there is noise, and seriously it makes crashes in speaker, why?