C# Класс AudioAdapters.MicrophoneInputAdapter

Наследование: GSF.TimeSeries.Adapters.InputAdapterBase
Показать файл Открыть проект

Открытые методы

Метод Описание
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