Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for capture options in WASAPI loopback #1010

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions NAudio.Wasapi/WasapiLoopbackCapture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,27 @@ public WasapiLoopbackCapture(MMDevice captureDevice) :
{
}

/// <summary>
/// Initializes a new instance of the <see cref="WasapiLoopbackCapture"/> class.
/// </summary>
/// <param name="captureDevice">The capture device.</param>
/// <param name="useEventSync">true if sync is done with event. false use sleep.</param>
public WasapiLoopbackCapture(MMDevice captureDevice, bool useEventSync) :
base(captureDevice, useEventSync)
{
}

/// <summary>
/// Initializes a new instance of the <see cref="WasapiLoopbackCapture"/> class.
/// </summary>
/// <param name="captureDevice">The capture device.</param>
/// <param name="useEventSync">true if sync is done with event. false use sleep.</param>
/// <param name="audioBufferMillisecondsLength">Length of the audio buffer in milliseconds. A lower value means lower latency but increased CPU usage.</param>
public WasapiLoopbackCapture(MMDevice captureDevice, bool useEventSync, int audioBufferMillisecondsLength) :
base(captureDevice, useEventSync, audioBufferMillisecondsLength)
{
}

/// <summary>
/// Gets the default audio loopback capture device
/// </summary>
Expand Down