C# Class NAudio.Wave.WaveIn

Allows recording using the Windows waveIn APIs Events are raised as recorded buffers are made available
Inheritance: IWaveIn
Show file Open project: jishi/Jishi.StreamToSonos Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Dispose method

GetCapabilities ( int devNumber ) : NAudio.Wave.WaveInCapabilities

Retrieves the capabilities of a waveIn device

GetMixerLine ( ) : NAudio.Mixer.MixerLine

Microphone Level

StartRecording ( ) : void

Start recording

StopRecording ( ) : void

Stop recording

WaveIn ( ) : System

Prepares a Wave input device for recording

WaveIn ( IntPtr windowHandle ) : System

Creates a WaveIn device using the specified window handle for callbacks

WaveIn ( NAudio.Wave.WaveCallbackInfo callbackInfo ) : System

Prepares a Wave input device for recording

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Dispose pattern

Private Methods

Method Description
Callback ( IntPtr waveInHandle, NAudio.Wave.WaveInterop message, IntPtr userData, NAudio.Wave.WaveHeader waveHeader, IntPtr reserved ) : void

Called when we get a new buffer of recorded data

CloseWaveInDevice ( ) : void
CreateBuffers ( ) : void
EnqueueBuffers ( ) : void
OpenWaveInDevice ( ) : void
RaiseDataAvailable ( NAudio.Wave.WaveInBuffer buffer ) : void
RaiseRecordingStopped ( Exception e ) : void

Method Details

Dispose() public method

Dispose method
public Dispose ( ) : void
return void

Dispose() protected method

Dispose pattern
protected Dispose ( bool disposing ) : void
disposing bool
return void

GetCapabilities() public static method

Retrieves the capabilities of a waveIn device
public static GetCapabilities ( int devNumber ) : NAudio.Wave.WaveInCapabilities
devNumber int Device to test
return NAudio.Wave.WaveInCapabilities

GetMixerLine() public method

Microphone Level
public GetMixerLine ( ) : NAudio.Mixer.MixerLine
return NAudio.Mixer.MixerLine

StartRecording() public method

Start recording
public StartRecording ( ) : void
return void

StopRecording() public method

Stop recording
public StopRecording ( ) : void
return void

WaveIn() public method

Prepares a Wave input device for recording
public WaveIn ( ) : System
return System

WaveIn() public method

Creates a WaveIn device using the specified window handle for callbacks
public WaveIn ( IntPtr windowHandle ) : System
windowHandle System.IntPtr A valid window handle
return System

WaveIn() public method

Prepares a Wave input device for recording
public WaveIn ( NAudio.Wave.WaveCallbackInfo callbackInfo ) : System
callbackInfo NAudio.Wave.WaveCallbackInfo
return System