public SoundTest(string str, string str2, string str3) { int fadeFrame = 600; int volume = 127; m = new SoundPlayer(str, SoundPlayer.SOUNDTYPE.BGM); m.FadeinSound(fadeFrame, volume); AddChild(m); m2 = new SoundPlayer(str2, SoundPlayer.SOUNDTYPE.BGS); m2.ChangeVolume(volume); m2.PlaySound(); m2.FadeoutSound(fadeFrame); AddChild(m2); m3 = new SoundPlayer(str3, SoundPlayer.SOUNDTYPE.SE); AddChild(m3); l = new Letter(); l.LocalPos = new Vect(70, 70); AddChild(l); l2 = new Letter(); l2.LocalPos = new Vect(70, 110); l2.Text = "0= 一時停止\n 1= パン左へ\n2 = パン右へ\n3 = ボリューム下げる\n4 = ボリューム上げる"; AddChild(l2); }