AudioContextOptions Class

The options of an AudioContext (https://webaudio.github.io/web-audio-api/#AudioContextOptions).

public sealed class AudioContextOptions

Constructors

NameDescription
AudioContextOptions()

AudioContextOptions()

AudioContext.cs
public AudioContextOptions()

No documentation is available.

Properties

NameDescription
LatencyHintGets the latency hint: an AudioContextLatencyCategory, or a latency in seconds.
RenderSizeHintGets the render quantum size: an AudioContextRenderSizeCategory, or a number of sample frames (a UInt32).
SampleRateGets the sample rate in Hz, or null for the default sample rate (48000 Hz).
SinkIdGets the audio output device: the identifier of a device (the empty string for the default device), or the options of a sink without device.

LatencyHint

AudioContext.cs

Gets the latency hint: an AudioContextLatencyCategory, or a latency in seconds.

public AudioContextLatencyHint LatencyHint { get; init; }

RenderSizeHint

AudioContext.cs

Gets the render quantum size: an AudioContextRenderSizeCategory, or a number of sample frames (a UInt32).

public AudioContextRenderSizeHint RenderSizeHint { get; init; }

SampleRate

AudioContext.cs

Gets the sample rate in Hz, or null for the default sample rate (48000 Hz).

public float? SampleRate { get; init; }

Gets the audio output device: the identifier of a device (the empty string for the default device), or the options of a sink without device.

public StringOrAudioSinkOptions? SinkId { get; init; }