AudioContextOptions Class
The options of an AudioContext (https://webaudio.github.io/web-audio-api/#AudioContextOptions).
public sealed class AudioContextOptionsConstructors
| Name | Description |
|---|---|
| AudioContextOptions() |
AudioContextOptions()
AudioContext.cspublic AudioContextOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| LatencyHint | Gets the latency hint: an AudioContextLatencyCategory, or a latency in seconds. |
| RenderSizeHint | Gets the render quantum size: an AudioContextRenderSizeCategory, or a number of sample frames (a UInt32). |
| SampleRate | Gets the sample rate in Hz, or null for the default sample rate (48000 Hz). |
| SinkId | 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. |
LatencyHint
AudioContext.csGets the latency hint: an AudioContextLatencyCategory, or a latency in seconds.
public AudioContextLatencyHint LatencyHint { get; init; }RenderSizeHint
AudioContext.csGets the render quantum size: an AudioContextRenderSizeCategory, or a number of sample frames (a UInt32).
public AudioContextRenderSizeHint RenderSizeHint { get; init; }SampleRate
AudioContext.csGets the sample rate in Hz, or null for the default sample rate (48000 Hz).
public float? SampleRate { get; init; }Property value
See also
SinkId
AudioContext.csGets 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; }