internal AudioClockClient(IAudioClock audioClockClientInterface) { this.audioClockClientInterface = audioClockClientInterface; //Stopwatch.GetTimestamp(); //Stopwatch.Frequency }
protected override void Dispose(bool disposing) { if (audioClockClientInterface != null) { ReleaseComObject(audioClockClientInterface); audioClockClientInterface = null; } }
public void Dispose() { if (this.audioClockClientInterface != null) { Marshal.ReleaseComObject(this.audioClockClientInterface); this.audioClockClientInterface = null; GC.SuppressFinalize(this); } }
/// <summary> /// Dispose /// </summary> public void Dispose() { if (audioClockClientInterface != null) { // althugh GC would do this for us, we want it done now // to let us reopen WASAPI Marshal.ReleaseComObject(audioClockClientInterface); audioClockClientInterface = null; GC.SuppressFinalize(this); } }
internal AudioClockClient(IAudioClock audioClockClientInterface) { this.audioClockClientInterface = audioClockClientInterface; }