void Dispose(bool disposing) { if (!disposedValue) { VsNetSoundRecorderSdk.SoundRecorder_FreeInstance(_handle); disposedValue = true; } }
protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { foreach (var audioDevice in GetAudioDevices()) { audioDevice.Dispose(); } } VsNetSoundRecorderSdk.SoundRecorder_FreeInstance(_handle); disposedValue = true; } }