AudioEncoderConfig Class

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

public sealed class AudioEncoderConfig

Constructors

NameDescription
AudioEncoderConfig()

AudioEncoderConfig()

CodecConfigs.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 AudioEncoderConfig()

No documentation is available.

Properties

NameDescription
AacGets the options of the AAC encoder, or null.
BitrateGets the target bitrate in bits per second, or null.
BitrateModeGets how the encoder controls its bitrate.
CodecGets the codec string (e.g. opus, mp4a.40.2).
FlacGets the options of the FLAC encoder, or null.
NumberOfChannelsGets the number of channels of the audio.
OpusGets the options of the Opus encoder, or null.
SampleRateGets the sample rate of the audio in Hz.

Gets the options of the AAC encoder, or null.

public AacEncoderConfig? Aac { get; init; }

Gets the target bitrate in bits per second, or null.

public ulong? Bitrate { get; init; }

BitrateMode

CodecConfigs.cs

Gets how the encoder controls its bitrate.

public BitrateMode BitrateMode { get; init; }

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

public required string Codec { get; init; }

Gets the options of the FLAC encoder, or null.

public FlacEncoderConfig? Flac { get; init; }

NumberOfChannels

CodecConfigs.cs

Gets the number of channels of the audio.

public required uint NumberOfChannels { get; init; }

Gets the options of the Opus encoder, or null.

public OpusEncoderConfig? Opus { get; init; }

SampleRate

CodecConfigs.cs

Gets the sample rate of the audio in Hz.

public required uint SampleRate { get; init; }