Dispose() public method

public Dispose ( ) : void
return void
Beispiel #1
0
 private void _DisposeAudio()
 {
     if (_audioSystem != null)
     {
         _audioSystem.Stop();
         _audioSystem.Dispose();
         _audioSystem = null;
     }
 }
Beispiel #2
0
 private void _DisposeAudio()
 {
     if (_audioSystem != null)
     {
         _audioSystem.Stop();
         _audioSystem.FrequencyDetected -= _audioSystem_FrequencyDetected;
         _audioSystem.Dispose();
         _audioSystem = null;
     }
 }