public override IEnumerator IeUpdate() { while (true) { if (KeyControl.GiveKey(DX.KEY_INPUT_0) == 1) { if (m.IsPlaySound()) { m.StopSound(); } else { m.ContinueSound(); } } if (KeyControl.GiveKey(DX.KEY_INPUT_1) >= 1) { int pan = m.PanVal; m.ChangePan(pan - 3); } if (KeyControl.GiveKey(DX.KEY_INPUT_2) >= 1) { int pan = m.PanVal; m.ChangePan(pan + 3); } if (KeyControl.GiveKey(DX.KEY_INPUT_3) >= 1) { float vol = m.Volume; m.ChangeVolume(vol - 3); } if (KeyControl.GiveKey(DX.KEY_INPUT_4) >= 1) { float vol = m.Volume; m.ChangeVolume(vol + 3); } if (KeyControl.GiveKey(DX.KEY_INPUT_5) >= 1) { m3.PlaySound(); } yield return(0); } }