播放系统声音:
string soundPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Windows) + Path.DirectorySeparatorChar + "Media" + Path.DirectorySeparatorChar + "Alarm01.wav";if (System.IO.File.Exists(soundPath)){ AlertPlayer.SoundLocation = soundPath; AlertPlayer.Load(); AlertPlayer.PlayLooping();}