AudioDecoderConfig Class

The configuration of an AudioDecoder (https://w3c.github.io/webcodecs/#dictdef-audiodecoderconfig).

public sealed class AudioDecoderConfig

Constructors

NameDescription
AudioDecoderConfig()

AudioDecoderConfig()

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

No documentation is available.

Properties

NameDescription
CodecGets the codec string (e.g. opus, pcm-s16, mp4a.40.2).
DescriptionGets the codec-specific bytes (e.g. the AudioSpecificConfig of AAC): a buffer source of the scripts, a Byte array or a memory of bytes, or null.
NumberOfChannelsGets the number of channels.
SampleRateGets the sample rate in Hz.

Gets the codec string (e.g. opus, pcm-s16, mp4a.40.2).

public required string Codec { get; init; }

Description

CodecConfigs.cs

Gets the codec-specific bytes (e.g. the AudioSpecificConfig of AAC): a buffer source of the scripts, a Byte array or a memory of bytes, or null.

public object? Description { get; init; }

NumberOfChannels

CodecConfigs.cs

Gets the number of channels.

public required uint NumberOfChannels { get; init; }

SampleRate

CodecConfigs.cs

Gets the sample rate in Hz.

public required uint SampleRate { get; init; }