Table of Contents

Class WASAPI2RendererSettings

Namespace
VisioForge.Core.Types.X.AudioRenderers
Assembly
VisioForge.Core.dll

Class WASAPI2RendererSettings. Implements the VisioForge.Core.Types.X.AudioRenderers.IAudioRendererSettings

public class WASAPI2RendererSettings : IAudioRendererSettings

Inheritance

Implements

Inherited Members

Constructors

WASAPI2RendererSettings(AudioOutputDeviceInfo)

Initializes a new instance of the VisioForge.Core.Types.X.AudioRenderers.WASAPI2RendererSettings class.

public WASAPI2RendererSettings(AudioOutputDeviceInfo deviceInfo)

Parameters

deviceInfo AudioOutputDeviceInfo

The device information.

Exceptions

ArgumentException

Invalid API. Should be WASAPI.

Properties

API

Gets or sets the API.

public AudioOutputDeviceAPI API { get; }

Property Value

AudioOutputDeviceAPI

BufferTime

Gets or sets the size of the audio buffer held by the device, and the minimum latency the sink reports. Larger values make playback tolerant of CPU spikes; smaller values reduce latency at the cost of glitches when the machine stalls. Ignored when VisioForge.Core.Types.X.AudioRenderers.WASAPI2RendererSettings.LowLatency is enabled. Set to Zero or a negative value to leave the element default untouched. The resolution is one microsecond; a smaller positive value is raised to it, and anything above 10 seconds is capped.

public TimeSpan BufferTime { get; set; }

Property Value

TimeSpan

DevicePath

Gets or sets the device path.

public string DevicePath { get; }

Property Value

string

Guid

Gets or sets the unique identifier.

public Guid Guid { get; }

Property Value

Guid

LatencyTime

Gets or sets the minimum amount of data written in each iteration. Set to Zero or a negative value to leave the element default untouched. The resolution is one microsecond; a smaller positive value is raised to it, and anything above 10 seconds is capped.

public TimeSpan LatencyTime { get; set; }

Property Value

TimeSpan

LowLatency

Gets or sets a value indicating whether to optimize all settings for lowest latency. It is always safe to enable this setting.

public bool LowLatency { get; set; }

Property Value

bool

Mute

Gets or sets the mute state of this stream.

public bool Mute { get; set; }

Property Value

bool

Volume

Gets or sets the volume.

public double Volume { get; set; }

Property Value

double

See Also