【C#学习笔记】播放wav文件

using System;
using System.Media;

namespace ConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            SoundPlayer s = new SoundPlayer("test.wav");
            s.Play();

            Console.Read();
        }      
    }
}

 

posted @ 2017-08-27 15:09  Dsp Tian  阅读(2586)  评论(1编辑  收藏  举报