Table of Contents
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>
Decoded audio data that can be turned into an AudioClip
public AudioSamples(float[] Data, int Channels, int SampleRate);
Data System.Single[]
Interleaved samples for all channels
Channels System.Int32
Number of channels
SampleRate System.Int32
Samples per second for each channel
Number of channels
public int Channels { get; set; }
Interleaved samples for all channels
public float[] Data { get; set; }
Length of the audio in seconds
public double Length { get; }
Samples per second for each channel
public int SampleRate { get; set; }