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...
AudioEffectSpectrumAnalyzerInstance
繼承: AudioEffectInstance < RefCounted < Object
可查詢的 AudioEffectSpectrumAnalyzer 執行個體。
說明
AudioEffectSpectrumAnalyzer 的執行階段部分,可用於查詢其所在匯流排上指定頻率範圍的能量大小。
可透過 AudioServer.get_bus_effect_instance() 取得此類別的實體。
教學
方法
get_magnitude_for_frequency_range(from_hz: float, to_hz: float, mode: MagnitudeMode = 1) const |
列舉
enum MagnitudeMode: 🔗
MagnitudeMode MAGNITUDE_AVERAGE = 0
使用該頻率範圍的平均值作為幅度。
MagnitudeMode MAGNITUDE_MAX = 1
使用該頻率範圍的最大值作為幅度。
方法說明
Vector2 get_magnitude_for_frequency_range(from_hz: float, to_hz: float, mode: MagnitudeMode = 1) const 🔗
返回 from_hz 到 to_hz 頻率範圍的線性能量大小,型別為 Vector2。其中 x 表左聲道,y 表右聲道。
mode 決定該頻率範圍的處理方式。