using System.Media; string szPath = Application.StartupPath + “\\SoundFile\\sound.wav”; SoundPlayer soundplayer = new SoundPlayer(); 声音文件路径: soundplayer.SoundLocation = szPath; 播放方式: ①同步播放: soundplayer.Load(); soundplayer.Play(); ②异步播放: soundplayer.LoadAsync(); soundplayer.PlaySync(); ③循环播放: soundplayer.Load(); soundplayer.PlayLooping(); ④关闭://关闭时释放资源 soundplayer.Stop(); soundplayer.Dispose();