最近写C#程序发现一个播放音乐的方法,防止时间长了忘记先记录下来
SoundPlayer player;
player = new SoundPlayer();
用new出来的实例点SoundLocation指定想要播放的音乐名称
player.SoundLocation = "SOUND5.WAV";(将播放音乐放在应用程序Debug目录下)
player.Load();
音乐播放
player.Play();

相关文章:

  • 2022-12-23
  • 2021-09-09
  • 2021-09-22
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
猜你喜欢
  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
  • 2021-10-03
  • 2022-02-05
相关资源
相似解决方案