AudioDataInit Class

The description of the samples of an AudioData (https://w3c.github.io/webcodecs/#dictdef-audiodatainit).

public sealed class AudioDataInit

Constructors

NameDescription
AudioDataInit()

AudioDataInit()

  • 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 AudioDataInit()

No documentation is available.

Properties

NameDescription
DataGets the samples: a buffer source of the scripts, a Byte array or a memory of bytes (the bytes of the samples, little-endian).
FormatGets the format of the samples.
NumberOfChannelsGets the number of channels.
NumberOfFramesGets the number of frames (samples per channel).
SampleRateGets the sample rate in Hz.
TimestampGets the presentation timestamp in microseconds.
TransferGets the ArrayBuffer objects detached by the construction.

Gets the samples: a buffer source of the scripts, a Byte array or a memory of bytes (the bytes of the samples, little-endian).

public required object Data { get; init; }

Gets the format of the samples.

public required AudioSampleFormat Format { get; init; }

NumberOfChannels

AudioData.cs

Gets the number of channels.

public required uint NumberOfChannels { get; init; }

NumberOfFrames

AudioData.cs

Gets the number of frames (samples per channel).

public required uint NumberOfFrames { get; init; }

SampleRate

AudioData.cs

Gets the sample rate in Hz.

public required float SampleRate { get; init; }

Timestamp

AudioData.cs

Gets the presentation timestamp in microseconds.

public required long Timestamp { get; init; }

Transfer

AudioData.cs

Gets the ArrayBuffer objects detached by the construction.

public IReadOnlyList<object>? Transfer { get; init; }