C# Class YAMP.Sensors.Devices.Microphone

The microphone devide using NAudio.
Inheritance: BaseDevice
显示文件 Open project: FlorianRappl/YAMP

Public Methods

Method Description
Microphone ( ) : NAudio.CoreAudioApi

Creates a new microphone.

Record ( Int32 bufferFills ) : Task

Records the audio for the specified number of buffer fills.

Protected Methods

Method Description
InstallReadingChangedHandler ( ) : void

Installs the reading handler.

UninstallReadingChangedHandler ( ) : void

Uninstalls the reading handler.

Private Methods

Method Description
OnDataAvailable ( Object sender, NAudio.Wave.WaveInEventArgs e ) : void

Method Details

InstallReadingChangedHandler() protected method

Installs the reading handler.
protected InstallReadingChangedHandler ( ) : void
return void

Microphone() public method

Creates a new microphone.
public Microphone ( ) : NAudio.CoreAudioApi
return NAudio.CoreAudioApi

Record() public method

Records the audio for the specified number of buffer fills.
public Record ( Int32 bufferFills ) : Task
bufferFills System.Int32
return Task

UninstallReadingChangedHandler() protected method

Uninstalls the reading handler.
protected UninstallReadingChangedHandler ( ) : void
return void