AudioAdapters.MicrophoneInputAdapter.AttemptDisconnection C# (CSharp) Method

AttemptDisconnection() protected method

Attempts to disconnect from data input source.
Derived classes should attempt disconnect from data input source here. Any exceptions thrown by this implementation will be reported to host via AdapterBase.ProcessException event.
protected AttemptDisconnection ( ) : void
return void
        protected override void AttemptDisconnection()
        {
            if ((object)m_waveIn != null)
            {
                m_waveIn.Dispose();
                m_waveIn = null;
            }
        }