AudioDataCopyToOptions Class

The options of AudioData.CopyTo and AudioData.AllocationSize (https://w3c.github.io/webcodecs/#dictdef-audiodatacopytooptions).

public sealed class AudioDataCopyToOptions

Constructors

NameDescription
AudioDataCopyToOptions()

AudioDataCopyToOptions()

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

No documentation is available.

Properties

NameDescription
FormatGets the format of the copied samples (the format of the data by default).
FrameCountGets the number of frames to copy (the frames from the offset by default).
FrameOffsetGets the index of the first frame to copy.
PlaneIndexGets the index of the plane to copy: 0 for an interleaved format, the channel for a planar format.

Gets the format of the copied samples (the format of the data by default).

public AudioSampleFormat? Format { get; init; }

FrameCount

AudioData.cs

Gets the number of frames to copy (the frames from the offset by default).

public uint? FrameCount { get; init; }

FrameOffset

AudioData.cs

Gets the index of the first frame to copy.

public uint FrameOffset { get; init; }

PlaneIndex

AudioData.cs

Gets the index of the plane to copy: 0 for an interleaved format, the channel for a planar format.

public required uint PlaneIndex { get; init; }