C# Class NAudio.Wave.WaveIn

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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Dispose pattern

Private Methods

Méthode 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 méthode

Dispose method
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Dispose pattern
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetCapabilities() public static méthode

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

GetMixerLine() public méthode

Microphone Level
public GetMixerLine ( ) : NAudio.Mixer.MixerLine
Résultat NAudio.Mixer.MixerLine

StartRecording() public méthode

Start recording
public StartRecording ( ) : void
Résultat void

StopRecording() public méthode

Stop recording
public StopRecording ( ) : void
Résultat void

WaveIn() public méthode

Prepares a Wave input device for recording
public WaveIn ( ) : System
Résultat System

WaveIn() public méthode

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

WaveIn() public méthode

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