C# Class NAudio.CoreAudioApi.WasapiCapture

Audio Capture using Wasapi See http://msdn.microsoft.com/en-us/library/dd370800%28VS.85%29.aspx
Inheritance: IWaveIn
Datei anzeigen Open project: jishi/Jishi.StreamToSonos Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Dispose

GetDefaultCaptureDevice ( ) : MMDevice

Gets the default audio capture device

StartRecording ( ) : void

Start Recording

StopRecording ( ) : void

Stop Recording (requests a stop, wait for RecordingStopped event to know it has finished)

WasapiCapture ( ) : System

Initialises a new instance of the WASAPI capture class

WasapiCapture ( MMDevice captureDevice ) : System

Initialises a new instance of the WASAPI capture class

Protected Methods

Method Description
GetAudioClientStreamFlags ( ) : AudioClientStreamFlags

To allow overrides to specify different flags (e.g. loopback)

Private Methods

Method Description
CaptureThread ( AudioClient client ) : void
DoRecording ( AudioClient client ) : void
InitializeCaptureDevice ( ) : void
RaiseRecordingStopped ( Exception e ) : void
ReadNextPacket ( NAudio.CoreAudioApi.AudioCaptureClient capture ) : void

Method Details

Dispose() public method

Dispose
public Dispose ( ) : void
return void

GetAudioClientStreamFlags() protected method

To allow overrides to specify different flags (e.g. loopback)
protected GetAudioClientStreamFlags ( ) : AudioClientStreamFlags
return AudioClientStreamFlags

GetDefaultCaptureDevice() public static method

Gets the default audio capture device
public static GetDefaultCaptureDevice ( ) : MMDevice
return MMDevice

StartRecording() public method

Start Recording
public StartRecording ( ) : void
return void

StopRecording() public method

Stop Recording (requests a stop, wait for RecordingStopped event to know it has finished)
public StopRecording ( ) : void
return void

WasapiCapture() public method

Initialises a new instance of the WASAPI capture class
public WasapiCapture ( ) : System
return System

WasapiCapture() public method

Initialises a new instance of the WASAPI capture class
public WasapiCapture ( MMDevice captureDevice ) : System
captureDevice MMDevice Capture device to use
return System