AudioEncoderConfig Class
The configuration of an AudioEncoder (https://w3c.github.io/webcodecs/#dictdef-audioencoderconfig).
public sealed class AudioEncoderConfigConstructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| Aac | Gets the options of the AAC encoder, or null. |
| Bitrate | Gets the target bitrate in bits per second, or null. |
| BitrateMode | Gets how the encoder controls its bitrate. |
| Codec | Gets the codec string (e.g. opus, mp4a.40.2). |
| Flac | Gets the options of the FLAC encoder, or null. |
| NumberOfChannels | Gets the number of channels of the audio. |
| Opus | Gets the options of the Opus encoder, or null. |
| SampleRate | Gets the sample rate of the audio in Hz. |
Gets the options of the AAC encoder, or null.
public AacEncoderConfig? Aac { get; init; }Bitrate
CodecConfigs.csGets the target bitrate in bits per second, or null.
public ulong? Bitrate { get; init; }BitrateMode
CodecConfigs.csGets how the encoder controls its bitrate.
public BitrateMode BitrateMode { get; init; }Property value
See also
Codec
CodecConfigs.csGets the codec string (e.g. opus, mp4a.40.2).
public required string Codec { get; init; }Flac
CodecConfigs.csGets the options of the FLAC encoder, or null.
public FlacEncoderConfig? Flac { get; init; }Property value
See also
NumberOfChannels
CodecConfigs.csGets the number of channels of the audio.
public required uint NumberOfChannels { get; init; }Opus
CodecConfigs.csGets the options of the Opus encoder, or null.
public OpusEncoderConfig? Opus { get; init; }Property value
See also
SampleRate
CodecConfigs.csGets the sample rate of the audio in Hz.
public required uint SampleRate { get; init; }