public void FadeOut(int frames) { if (!Playing) return; if (channel != null) { float fadeamt = 1.0f / frames; Engine.Instance.DelayedCall(Stop, i => { Volume -= fadeamt; }, frames); } }