Table of Contents

Class AudioCaptureParameters

Namespace
VAST.Capture
Assembly
VAST.Common.dll

Defines additional and optional audio capture initialization parameters which can only be set before a capture starts.

public class AudioCaptureParameters
Inheritance
AudioCaptureParameters
Inherited Members

Constructors

AudioCaptureParameters()

public AudioCaptureParameters()

Properties

CaptureTimeout

Gets or sets capture timeout after which capture source fails. By default DefaultCaptureTimeout is used.

public TimeSpan CaptureTimeout { get; set; }

Property Value

TimeSpan

DefaultCaptureTimeout

Gets or sets default capture timeout after which capture source fails.

public static TimeSpan DefaultCaptureTimeout { get; set; }

Property Value

TimeSpan

DefaultEnableDeviceRecovery

Gets or sets whether automatic device recovery logic is enabled by default. Disabled by default.

public static bool DefaultEnableDeviceRecovery { get; set; }

Property Value

bool

DefaultQuickOpen

Gets or sets whether source starts as quickly as possible by default. If the property is true then a source reports Opened state without waiting for the first actual captured frame. Substitute silent audio samples are pushed until an actual sample received from a device. If the property is false then a source waits for the first frame from a device and only then reports Opened state. It should be set to true only when EnableDeviceRecovery is true. False by default, i.e. capture source waits for the first frame from a device.

public static bool DefaultQuickOpen { get; set; }

Property Value

bool

EnableDeviceRecovery

Gets or sets whether automatic device recovery logic is enabled. By default DefaultEnableDeviceRecovery is used.

public bool EnableDeviceRecovery { get; set; }

Property Value

bool

QuickOpen

Gets or sets whether source starts as quickly as possible. If the property is true then a source reports Opened state without waiting for the first actual captured frame. Substitute silent audio samples are pushed until an actual sample received from a device. If the property is false then a source waits for the first frame from a device and only then reports Opened state. It should be set to true only when EnableDeviceRecovery is true. By default DefaultQuickOpen is used.

public bool QuickOpen { get; set; }

Property Value

bool