Esempio n. 1
0
 public void Dispose()
 {
     for (int i = 0; i < _tracks.Length; i++)
     {
         if (_tracks[i] != null)
         {
             _tracks[i].Dispose();
             _tracks[i] = null;
         }
     }
     mData = null;
     if (mUpdating)
     {
         mUpdating = false;
         _player.mData.bank.instances.Remove(this);
     }
 }
Esempio n. 2
0
        internal SoundHelperInstance(SoundHelper sh)
        {
            mData = sh;

            _tracks = new TrackHelperInstance[sh._tracks.Length];
            for (int i = 0; i < _tracks.Length; i++)
            {
                _tracks[i] = new TrackHelperInstance(sh._tracks[i]);
            }
        }