public void Dispose() { if (this.struct66_0.intptr_0 != IntPtr.Zero) { Class162.waveOutUnprepareHeader(this.intptr_0, ref this.struct66_0, Marshal.SizeOf(this.struct66_0)); this.gchandle_0.Free(); this.struct66_0.intptr_0 = IntPtr.Zero; } this.autoResetEvent_0.Close(); if (this.gchandle_1.IsAllocated) { this.gchandle_1.Free(); } GC.SuppressFinalize(this); }
public void method_0(bool bool_0) { if (this.gchandle_1.IsAllocated) { this.gchandle_1.Free(); } if (this.gchandle_0.IsAllocated) { this.gchandle_0.Free(); } if (this.gchandle_2.IsAllocated) { this.gchandle_2.Free(); } if (this.intptr_0 != IntPtr.Zero) { lock (this.object_0) { Class162.waveOutUnprepareHeader(this.intptr_0, ref this.struct66_0, Marshal.SizeOf(this.struct66_0)); } this.intptr_0 = IntPtr.Zero; } }