AudioDataInit Class
The description of the samples of an AudioData (https://w3c.github.io/webcodecs/#dictdef-audiodatainit).
public sealed class AudioDataInitConstructors
| Name | Description |
|---|---|
| AudioDataInit() |
AudioDataInit()
- 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 AudioDataInit()No documentation is available.
Properties
| Name | Description |
|---|---|
| Data | Gets the samples: a buffer source of the scripts, a Byte array or a memory of bytes (the bytes of the samples, little-endian). |
| Format | Gets the format of the samples. |
| NumberOfChannels | Gets the number of channels. |
| NumberOfFrames | Gets the number of frames (samples per channel). |
| SampleRate | Gets the sample rate in Hz. |
| Timestamp | Gets the presentation timestamp in microseconds. |
| Transfer | Gets the ArrayBuffer objects detached by the construction. |
Data
AudioData.csFormat
AudioData.csGets the format of the samples.
public required AudioSampleFormat Format { get; init; }NumberOfChannels
AudioData.csGets the number of channels.
public required uint NumberOfChannels { get; init; }NumberOfFrames
AudioData.csGets the number of frames (samples per channel).
public required uint NumberOfFrames { get; init; }SampleRate
AudioData.csGets the sample rate in Hz.
public required float SampleRate { get; init; }Timestamp
AudioData.csGets the presentation timestamp in microseconds.
public required long Timestamp { get; init; }Transfer
AudioData.csGets the ArrayBuffer objects detached by the construction.
public IReadOnlyList<object>? Transfer { get; init; }