using System; using System.Media; namespace ConsoleApplication { class Program { static void Main(string[] args) { SoundPlayer s = new SoundPlayer("test.wav"); s.Play(); Console.Read(); } } }
【C#学习笔记】播放wav文件
原文:http://www.cnblogs.com/tiandsp/p/7440426.html