C# 클래스 AudioAdapters.MicrophoneInputAdapter

상속: GSF.TimeSeries.Adapters.InputAdapterBase
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf

공개 메소드들

메소드 설명
GetShortStatus ( int maxLength ) : string

Gets a short one-line status of this AdapterBase.

보호된 메소드들

메소드 설명
AttemptConnection ( ) : void

Attempts to connect to data input source.

Derived classes should attempt connection to data input source here. Any exceptions thrown by this implementation will result in restart of the connection cycle.

AttemptDisconnection ( ) : void

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.

Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the MicrophoneInputAdapter object and optionally releases the managed resources.

비공개 메소드들

메소드 설명
ConvertToPCM16 ( double sample ) : short
GetSampleTypeCode ( ) : TypeCode
WaveIn_DataAvailable ( object sender, NAudio.Wave.WaveInEventArgs waveInEventArgs ) : void
WaveIn_RecordingStopped ( object sender, NAudio.Wave.StoppedEventArgs stoppedEventArgs ) : void

메소드 상세

AttemptConnection() 보호된 메소드

Attempts to connect to data input source.
Derived classes should attempt connection to data input source here. Any exceptions thrown by this implementation will result in restart of the connection cycle.
protected AttemptConnection ( ) : void
리턴 void

AttemptDisconnection() 보호된 메소드

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
리턴 void

Dispose() 보호된 메소드

Releases the unmanaged resources used by the MicrophoneInputAdapter object and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
리턴 void

GetShortStatus() 공개 메소드

Gets a short one-line status of this AdapterBase.
public GetShortStatus ( int maxLength ) : string
maxLength int Maximum number of available characters for display.
리턴 string