AudioBand
class
Original concept of this class by Peer Play, https://www.youtube.com/@PeerPlay, modified by me.
A class that can be used to get the frequency bands of an audio source
Methods
AudioBand(BandCount bandCount)
Create a new instance of AudioBand with the specified band count
GetFrequencyBand(int bandIndex, bool buffered = false)
Get specified band's frequency band - Index of a band you want to get the value of
buffered - Provides smoother falloff of values
GetAudioBand(int bandIndex, bool buffered = false)
Get specified band's normallized frequency (0 to 1) band - Index of a band you want to get the value of buffered - Provides smoother falloff of values
GetAmplitude(bool buffered = false)
Get the total amplitude of the audio source buffered - Provides smoother falloff of values
Update(Action<float[]> getSamples)
Update the band values. getSamples - A delegate that assigns samples from AudioSource.GetSpectrumData
Last updated