首页 > 技术文章 > WinFrom中音频播放

xmyjcs 2018-04-12 19:42 原文

1 public void RightVoiceAndHint()
2 {
3     string path = CimsConstant.APLICATION_PATH + "wav\\Success.wav";
4     SoundPlayer player = new SoundPlayer(path);
5     player.Play();//简单播放一遍
6 }

 

推荐阅读