Table of Contents

Class AudioData

Namespace
PluginUI.Dsp
Assembly
PluginUI.dll

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

Channels float[][]

Samples per channel, all of the same length.

SampleRate int

Sample rate in Hz.

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

double

Length

Number of frames (samples per channel).

public int Length { get; }

Property Value

int

SampleRate

Sample rate in Hz.

public int SampleRate { get; init; }

Property Value

int