//播放音效
public void PLAY_WAV_MUSIC(string Path)
{
if (Path.Length == 0 || Path.IndexOf(".wav") == -1)
{
return;
}
System.Media.SoundPlayer sp = new System.Media.SoundPlayer();
sp.SoundLocation = Path;
sp.Play();
}
沒有留言:
張貼留言