AnalyserNode 是否不断更新其 "current frequency data"?

Does AnalyserNode update its "current frequency data" continuously?

我已阅读有关 The AnalyserNode Interface on the W3C docs, which states that the AnalyserNode will pass the input audio to the output untouched. It also describes the process of computing its "current frequency data" 的部分。

我想知道输入音频的这种处理是连续进行还是按需进行,f.i。当调用 getFloatFrequencyData() 时。

有人知道吗?它是特定于浏览器的吗?

这可能取决于浏览器,但作为性能优化,它只能按需完成。当然,节点需要保留足够的信息来进行按需计算,但这比连续计算频率数据要便宜得多。

asked Paul Adenot 好心人 link 我分别给 Chrome 和 Firefox 的来源: