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