0
내가 뭘 잘못하고 있니?XNA/MonoGame 소리와 음악이 내 게임 속도를 늦추고 있습니다.
음악 및 음향 효과가 게임 속도를 크게 낮추고 지연과 눈금이 눈에.니다. MonoGame을 사용하고 있습니다.
음악 :
Game1.instance.Stop();
Game1.bgEffect.Dispose();
Game1.bgEffect = Content.Load<SoundEffect>("../../../../Content/Sound/track" + Player.Age);
Game1.instance = Game1.bgEffect.CreateInstance();
Game1.instance.Play();
사운드 효과 :
if (Game1.fireSoundEffect != null)
{
Game1.fireSoundInstance.Stop();
Game1.fireSoundEffect.Dispose();
}
Game1.fireSoundEffect = Content.Load<SoundEffect>("../../../../Content/Sound/fire" + Player.Age);
Game1.fireSoundEffect.Play((float)0.3, (float)0.0, (float)0.0);
Game1.fireSoundInstance = Game1.fireSoundEffect.CreateInstance();
Game1.fireSoundInstance.Play();
나는 느낌이 난 중 하나를 완전히 객체를 폐기되지 않았거나 실행 인스턴스를 중지하지. 이 문제를 어떻게 해결할 수 있습니까?