Class WASAPI2RendererSettings
- Assembly
- VisioForge.Core.dll
Class WASAPI2RendererSettings. Implements the VisioForge.Core.Types.X.AudioRenderers.IAudioRendererSettings
public class WASAPI2RendererSettings : IAudioRendererSettingsInheritance
Implements
Inherited Members
Constructors
WASAPI2RendererSettings(AudioOutputDeviceInfo)
Initializes a new instance of the VisioForge.Core.Types.X.AudioRenderers.WASAPI2RendererSettings class.
public WASAPI2RendererSettings(AudioOutputDeviceInfo deviceInfo)Parameters
deviceInfoAudioOutputDeviceInfo-
The device information.
Exceptions
- ArgumentException
-
Invalid API. Should be WASAPI.
Properties
API
Gets or sets the API.
public AudioOutputDeviceAPI API { get; }Property Value
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
DevicePath
Gets or sets the device path.
public string DevicePath { get; }Property Value
Guid
Gets or sets the unique identifier.
public Guid Guid { get; }Property Value
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
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
Mute
Gets or sets the mute state of this stream.
public bool Mute { get; set; }Property Value
Volume
Gets or sets the volume.
public double Volume { get; set; }