找回密碼
 注冊帳號

掃一掃,訪問微社區

audiochorusfilter.getspectrumdata 獲取聲譜數據

2015-1-3 12:27| 發布者: 楊炎| 查看: 3138| 評論: 0|原作者: 蠻牛|來自: unity3d腳本manual

摘要: audiosource.getspectrumdata 獲取聲譜數據functiongetspectrumdata(samples: float,channel: int,window:fftwindow) : voiddescription描述returns a block of the currently playing source's spectrum data返回當 ...

audiosource.getspectrumdata 獲取聲譜數據

functiongetspectrumdata(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. usewindowto 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之間。注意,更復雜的窗型,質量越好,但減慢速度。

相關閱讀

文章點評
相關文章
女校游泳队彩金