2009-08-20 115 views

回答

13

對於播放聲音乾脆,沒有互動,你可以使用System.Media.SoundPlayer:

System.Media.SoundPlayer player = new System.Media.SoundPlayer(); 
player.SoundLocation = "soundFile.wav"; 
player.Play();