播放系统声音:
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(); }
时间: 2024-10-05 17:57:20