System.Media.SoundPlayer sp = new System.Media.SoundPlayer();
sp.SoundLocation = @"C:\wav\lightning.wav";
sp.Play(); // 撥放
// sp.Stop(); // 停止
- May 31 Mon 2010 14:33
-
C# 播放音效
System.Media.SoundPlayer sp = new System.Media.SoundPlayer();
sp.SoundLocation = @"C:\wav\lightning.wav";
sp.Play(); // 撥放
// sp.Stop(); // 停止
請先 登入 以發表留言。