AudioBufferOptions Class

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

public sealed class AudioBufferOptions

Constructors

NameDescription
AudioBufferOptions()

AudioBufferOptions()

AudioBuffer.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 AudioBufferOptions()

No documentation is available.

Properties

NameDescription
LengthGets the length of the buffer in sample frames.
NumberOfChannelsGets the number of channels.
SampleRateGets the sample rate of the buffer in Hz.

Gets the length of the buffer in sample frames.

public required uint Length { get; init; }

NumberOfChannels

AudioBuffer.cs

Gets the number of channels.

public uint NumberOfChannels { get; init; }

SampleRate

AudioBuffer.cs

Gets the sample rate of the buffer in Hz.

public required float SampleRate { get; init; }