找回密码
 注册帐号

扫一扫,访问微社区

audiochorusfilter.getspectrumdata 获取声谱数据

2015-1-3 12:27| 发布者: 杨炎| 查看: 3187| 评论: 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之间。注意,更复杂的窗型,质量越好,但减慢速度。

相关阅读

文章点评
相关文章