AudioSource.GetSpectrumData 获取声谱数据
function GetSpectrumData (samples : float[], channel : int, window : FFTWindow) : void
Description描述
Returns a block of the currently playing source'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.
取样值必须是2的幂(如128/256/512等)。最小=64,最大=8192。使用FFTWindow以减少泄漏,频谱在bins/bands之间。注意,更复杂的窗型,质量越好,但减慢速度。
最后修改:2011年4月6日 Wednesday 10:37