예제 #1
0
 internal void UnregisterSound(SoundBase disposedSound)
 {
     lock (notDisposedSounds)
     {
         if (!notDisposedSounds.Remove(disposedSound))
             throw new AudioSystemInternalException("Try to remove a disposed sound not in the list of registered sounds.");
     }
 }
예제 #2
0
 internal void RegisterSound(SoundBase newSound)
 {
     lock (notDisposedSounds)
     {
         notDisposedSounds.Add(newSound);
     }
 }