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...
AudioEffectEQ
继承: AudioEffect < Resource < RefCounted < Object
派生: AudioEffectEQ10, AudioEffectEQ21, AudioEffectEQ6
音频均衡器的基类。让你可以控制频率。
如果 AudioEffectEQ6、AudioEffectEQ10 或 AudioEffectEQ21 不符合你的需求,请用它来创建自定义均衡器。
描述
AudioEffectEQ 可用于频率控制。用它来弥补音频中不足之处。AudioEffectEQ 在 Master 总线上很有用,可以完全掌控一个混音,并赋予它更多的特性。当游戏在移动设备上运行时,它们也很有用,可以根据那种扬声器来调整混音(可以被添加,但在插入耳机时禁用)。
教程
方法
get_band_count() const |
|
get_band_gain_db(band_idx: int) const |
|
void |
set_band_gain_db(band_idx: int, volume_db: float) |
方法说明
返回均衡器的频段数。
float get_band_gain_db(band_idx: int) const 🔗
返回指定索引处的波段增益,单位为 dB。
void set_band_gain_db(band_idx: int, volume_db: float) 🔗
设置指定索引处的波段增益,单位为 dB。