Skip to Main Content

BTD_Mod_Helper​.Api​.Audio​.AudioSamples


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.Audio

AudioSamples Class

Decoded audio data that can be turned into an AudioClip

public class AudioSamples :
System.IEquatable<BTD_Mod_Helper.Api.Audio.AudioSamples>

Inheritance System.Object  AudioSamples

Implements System.IEquatable<AudioSamples>

Constructors

AudioSamples(float[], int, int) Constructor

Decoded audio data that can be turned into an AudioClip

public AudioSamples(float[] Data, int Channels, int SampleRate);

Parameters

Data System.Single[]

Interleaved samples for all channels

Channels System.Int32

Number of channels

SampleRate System.Int32

Samples per second for each channel

Properties

AudioSamples.Channels Property

Number of channels

public int Channels { get; set; }

Property Value

System.Int32

AudioSamples.Data Property

Interleaved samples for all channels

public float[] Data { get; set; }

Property Value

System.Single[]

AudioSamples.Length Property

Length of the audio in seconds

public double Length { get; }

Property Value

System.Double

AudioSamples.SampleRate Property

Samples per second for each channel

public int SampleRate { get; set; }

Property Value

System.Int32