UnityEngine.AudioListener.GetSpectrumData C# (CSharp) Method

GetSpectrumData() public static method

Provides a block of the listener (master)'s spectrum data.

public static GetSpectrumData ( float samples, int channel, FFTWindow window ) : void
samples float The array to populate with audio samples. Its length must be a power of 2.
channel int The channel to sample from.
window FFTWindow The FFTWindow type to use when sampling.
return void
        public static void GetSpectrumData(float[] samples, int channel, FFTWindow window)
        {
            GetSpectrumDataHelper(samples, channel, window);
        }

Same methods

AudioListener::GetSpectrumData ( int numSamples, int channel, FFTWindow window ) : float[]