我正在做一个测验,在每种形式中我都有背景音乐,如果他们得到了正确的答案,我想播放一个音效。当我这样做的时候,是停止背景音乐并播放音效,然后没有声音在播放,有人知道怎么做吗? public static System.Media.SoundPlayer player = new System.Media.SoundPlayer();
public static void sound(string form)
{
switch (form)
{
case "Login":
player.Stop();