Beispiel #1
0
        public void Dispose()
        {
            if (disposed)
            {
                return;
            }

            lock (Graphics.AnimationLock)
            {
                if (mSound != null)
                {
                    mSound.Loop = false;
                    if (!MyBase.CompleteSound)
                    {
                        mSound.Stop();
                    }

                    mSound = null;
                }

                Graphics.LiveAnimations.Remove(this);
                disposed = true;
            }
        }
 public static void StopSound(MapSound sound)
 {
     sound?.Stop();
 }