Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
AudioEffectSpectrumAnalyzer¶
继承: AudioEffect < Resource < RefCounted < Object
可用于实时音频可视化的音频效果。
描述¶
This audio effect does not affect sound output, but can be used for real-time audio visualizations.
This resource configures an AudioEffectSpectrumAnalyzerInstance, which performs the actual analysis at runtime. An instance can be acquired with AudioServer.get_bus_effect_instance.
See also AudioStreamGenerator for procedurally generating sounds.
教程¶
属性¶
|
||
|
||
|
枚举¶
enum FFTSize: 🔗
FFTSize FFT_SIZE_256 = 0
使用 256 个样本的缓冲器进行快速傅里叶变换。最低延迟,但随着时间的推移最不稳定。
FFTSize FFT_SIZE_512 = 1
使用 512 个样本的缓冲器进行快速傅里叶变换。低延迟,但随着时间的推移不太稳定。
FFTSize FFT_SIZE_1024 = 2
使用 1024 个样本的缓冲器进行快速傅里叶变换。这是延迟和随着时间的推移的稳定性之间的折衷。
FFTSize FFT_SIZE_2048 = 3
使用 2048 个样本的缓冲器进行快速傅里叶变换。高延迟,但随着时间的推移稳定。
FFTSize FFT_SIZE_4096 = 4
使用 4096 个样本的缓冲器进行快速傅里叶变换。延迟最高,但随着时间的推移最稳定。
FFTSize FFT_SIZE_MAX = 5
代表 FFTSize 枚举的大小。
属性说明¶
要保留的缓冲区长度(以秒为单位)。较高的值将数据保存的时间更长,但需要更多的内存。
快速傅里叶变换缓冲区的大小。较高的值可以使频谱分析随时间的推移而平滑,但有较大的延迟。这种较高延迟的影响在突然的振幅变化中特别明显。
该属性目前没有描述,请帮我们贡献一个吧!