Xeno-rat
Loading...
Searching...
No Matches
NAudio.Wave.WasapiLoopbackCapture Class Reference

WASAPI Loopback Capture based on a contribution from "Pygmy" - http://naudio.codeplex.com/discussions/203605. More...

Inheritance diagram for NAudio.Wave.WasapiLoopbackCapture:
Collaboration diagram for NAudio.Wave.WasapiLoopbackCapture:

Public Member Functions

 WasapiLoopbackCapture ()
 Initialises a new instance of the WASAPI capture class.
 
 WasapiLoopbackCapture (MMDevice captureDevice)
 Initialises a new instance of the WASAPI capture class.
 
- Public Member Functions inherited from NAudio.CoreAudioApi.WasapiCapture
 WasapiCapture ()
 Initialises a new instance of the WASAPI capture class.
 
 WasapiCapture (MMDevice captureDevice)
 Initialises a new instance of the WASAPI capture class.
 
 WasapiCapture (MMDevice captureDevice, bool useEventSync)
 Initializes a new instance of the WasapiCapture class.
 
 WasapiCapture (MMDevice captureDevice, bool useEventSync, int audioBufferMillisecondsLength)
 Initializes a new instance of the WasapiCapture class.
 
void StartRecording ()
 Starts the recording process.
 
void StopRecording ()
 Stops the recording if it is currently in progress.
 
void Dispose ()
 Disposes of the resources used for audio recording.
 

Static Public Member Functions

static MMDevice GetDefaultLoopbackCaptureDevice ()
 Retrieves the default loopback capture device for audio rendering.
 
- Static Public Member Functions inherited from NAudio.CoreAudioApi.WasapiCapture
static MMDevice GetDefaultCaptureDevice ()
 Retrieves the default audio capture device.
 

Protected Member Functions

override AudioClientStreamFlags GetAudioClientStreamFlags ()
 Gets the audio client stream flags for loopback and base stream flags.
 

Additional Inherited Members

- Properties inherited from NAudio.CoreAudioApi.WasapiCapture
AudioClientShareMode ShareMode [get, set]
 Share Mode - set before calling StartRecording.
 
CaptureState CaptureState [get]
 Current Capturing State.
 
virtual WaveFormat WaveFormat [get, set]
 Capturing wave format.
 
- Properties inherited from NAudio.Wave.IWaveIn
- Events inherited from NAudio.CoreAudioApi.WasapiCapture
EventHandler< WaveInEventArgsDataAvailable
 Indicates recorded data is available.
 
EventHandler< StoppedEventArgsRecordingStopped
 Indicates that all recorded data has now been received.
 
- Events inherited from NAudio.Wave.IWaveIn
EventHandler< WaveInEventArgsDataAvailable
 Indicates recorded data is available.
 
EventHandler< StoppedEventArgsRecordingStopped
 Indicates that all recorded data has now been received.
 

Detailed Description

WASAPI Loopback Capture based on a contribution from "Pygmy" - http://naudio.codeplex.com/discussions/203605.

Constructor & Destructor Documentation

◆ WasapiLoopbackCapture() [1/2]

NAudio.Wave.WasapiLoopbackCapture.WasapiLoopbackCapture ( )
inline

Initialises a new instance of the WASAPI capture class.

◆ WasapiLoopbackCapture() [2/2]

NAudio.Wave.WasapiLoopbackCapture.WasapiLoopbackCapture ( MMDevice captureDevice)
inline

Initialises a new instance of the WASAPI capture class.

Parameters
captureDeviceCapture device to use

Member Function Documentation

◆ GetAudioClientStreamFlags()

override AudioClientStreamFlags NAudio.Wave.WasapiLoopbackCapture.GetAudioClientStreamFlags ( )
inlineprotectedvirtual

Gets the audio client stream flags for loopback and base stream flags.

Returns
The combined audio client stream flags for loopback and base stream flags.

Reimplemented from NAudio.CoreAudioApi.WasapiCapture.

◆ GetDefaultLoopbackCaptureDevice()

static MMDevice NAudio.Wave.WasapiLoopbackCapture.GetDefaultLoopbackCaptureDevice ( )
inlinestatic

Retrieves the default loopback capture device for audio rendering.

Returns
The default loopback capture device for audio rendering.

This method retrieves the default loopback capture device using the MMDeviceEnumerator class and returns the default audio endpoint for rendering multimedia content.

Here is the call graph for this function:

The documentation for this class was generated from the following file: