c# SoundPlayer播放声音怎么才能同时播放?
privatevoidForm1_Load(objectsender,EventArgse){SoundPlayermyplayer1=newSoundPlayer(Pr...
private void Form1_Load(object sender, EventArgs e)
{
SoundPlayer myplayer1 = new SoundPlayer(Properties.Resources.music );
myplayer1.Play();
}
private void button1_Click(object sender, EventArgs e)
{
System.Threading.Thread thread = new System.Threading.Thread(new System.Threading.ThreadStart(aa));
thread.Start();
}
void aa()
{
SoundPlayer myplayer = new SoundPlayer(Properties.Resources.a);
myplayer.Play();
}
连写入线程里都不行,点击按钮后第一个声音就停止 展开
{
SoundPlayer myplayer1 = new SoundPlayer(Properties.Resources.music );
myplayer1.Play();
}
private void button1_Click(object sender, EventArgs e)
{
System.Threading.Thread thread = new System.Threading.Thread(new System.Threading.ThreadStart(aa));
thread.Start();
}
void aa()
{
SoundPlayer myplayer = new SoundPlayer(Properties.Resources.a);
myplayer.Play();
}
连写入线程里都不行,点击按钮后第一个声音就停止 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询