AudioDecoderConfig Class
The configuration of an AudioDecoder (https://w3c.github.io/webcodecs/#dictdef-audiodecoderconfig).
public sealed class AudioDecoderConfigConstructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| Codec | Gets the codec string (e.g. opus, pcm-s16, mp4a.40.2). |
| Description | 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. |
| NumberOfChannels | Gets the number of channels. |
| SampleRate | Gets the sample rate in Hz. |
Codec
CodecConfigs.csGets the codec string (e.g. opus, pcm-s16, mp4a.40.2).
public required string Codec { get; init; }Description
CodecConfigs.csNumberOfChannels
CodecConfigs.csGets the number of channels.
public required uint NumberOfChannels { get; init; }SampleRate
CodecConfigs.csGets the sample rate in Hz.
public required uint SampleRate { get; init; }