Exemplo n.º 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.");
     }
 }
Exemplo n.º 2
0
 internal void RegisterSound(SoundBase newSound)
 {
     lock (notDisposedSounds)
     {
         notDisposedSounds.Add(newSound);
     }
 }