OfflineAudioContextOptions Class

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

public sealed class OfflineAudioContextOptions

Constructors

NameDescription
OfflineAudioContextOptions()

OfflineAudioContextOptions()

OfflineAudioContext.cs
  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public OfflineAudioContextOptions()

No documentation is available.

Properties

NameDescription
LengthGets the length of the rendering in sample frames, or null for a rendering of undefined length (rendered by chunks).
NumberOfChannelsGets the number of channels of the rendered buffers.
RenderSizeHintGets the render quantum size: an AudioContextRenderSizeCategory, or a number of sample frames (a UInt32).
SampleRateGets the sample rate in Hz.

Gets the length of the rendering in sample frames, or null for a rendering of undefined length (rendered by chunks).

public uint? Length { get; init; }

NumberOfChannels

OfflineAudioContext.cs

Gets the number of channels of the rendered buffers.

public uint NumberOfChannels { get; init; }

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

public AudioContextRenderSizeHint RenderSizeHint { get; init; }

Gets the sample rate in Hz.

public required float SampleRate { get; init; }