C# 怎么让背景音乐循环播放
private void Form1_Load(object sender, EventArgs e)
{
int i=0;
while (i < 99)
{
SoundPlayer SoundPly = new SoundPlayer();
SoundPly.SoundLocation = @"Bgm.wav";
SoundPly.Play();
timer1.Enabled = true;
timer1.Interval = 15000;
i++;
}
}
上面是自己编辑的,想法是每过15秒让音乐循环一遍,但运行时无法循环,求教大神们有什么好的方法吗
------解决方案--------------------http://msdn.microsoft.com/zh-cn/library/system.media.soundplayer.playlooping(v=vs.110).aspx
SoundPlayer.PlayLooping