C#使用HWQPlayer类播放wav文件 类的代码: using System.IO; using System.Runtime.InteropServices; namespace HoverTreeSound.HewenqiFrame { internal class HWQPlayer { [DllImport("winmm.dll")] private static extern int sndPlaySoundA(byte[] lpszSoundName, int uFla
using System; using System.Media; namespace ConsoleApplication { class Program { static void Main(string[] args) { SoundPlayer s = new SoundPlayer("test.wav"); s.Play(); Console.Read(); } } }