Class AudioData
Decoded audio: one float array per channel (−1..1) and the sample rate.
public sealed record AudioData : IEquatable<AudioData>
- Inheritance
-
AudioData
- Implements
- Inherited Members
Constructors
AudioData(float[][], int)
Decoded audio: one float array per channel (−1..1) and the sample rate.
public AudioData(float[][] Channels, int SampleRate)
Parameters
Properties
Channels
Samples per channel, all of the same length.
public float[][] Channels { get; init; }
Property Value
- float[][]
Duration
Duration in seconds.
public double Duration { get; }
Property Value
Length
Number of frames (samples per channel).
public int Length { get; }
Property Value
SampleRate
Sample rate in Hz.
public int SampleRate { get; init; }