AudioSource GetOutputData vs GetSpectrumData

What is the main difference between the audio source getoutputdata and getspectrumdata functions? I’m trying to do some animation based on an audio track

GetSpectrumData returns a block of the currently playing source’s spectrum data, while GetOutputData returns a block of the currently playing source’s output data.

The difference is the Window parameter which you can use to reduce leakage between frequency bins/bands.

Findout more about the Window parameter here: http://docs.unity3d.com/Documentation/ScriptReference/FFTWindow.html