AudioListener.GetSpectrumData 获取声谱数据


static function GetSpectrumData (samples : float[], channel : int, window : FFTWindow) : void

Description描述

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

返回侦听器的声谱数据块。

Number of values (numSamples) must be a power of 2. (ie 128/256/512 etc). Min = 64. Max = 8192.  Use window to reduce leakage between frequency bins/bands.   Note, the more complex window type, the better the quality, but reduced speed.

Samples的值必须是2的幂次方(128/256/512等)。最小值=64,最大值=8192。使用FFTWindow以减少bins/bands之间频率泄漏。注意,更复杂的窗口类型,质量越好,但减小速度。


,