AudioEffectEQ
继承: AudioEffect
< Resource
< RefCounted
< Object
派生: AudioEffectEQ10
, AudioEffectEQ21
, AudioEffectEQ6
Base class for audio equalizers. Gives you control over frequencies.
Use it to create a custom equalizer if AudioEffectEQ6
, AudioEffectEQ10
or AudioEffectEQ21
don't fit your needs.
描述
AudioEffectEQ gives you control over frequencies. Use it to compensate for existing deficiencies in audio. AudioEffectEQs are useful on the Master bus to completely master a mix and give it more character. They are also useful when a game is run on a mobile device, to adjust the mix to that kind of speakers (it can be added but disabled when headphones are plugged).
方法
int | get_band_count ( ) const1 |
float | get_band_gain_db ( band_idx: int ) const1 |
void | set_band_gain_db ( band_idx: int , volume_db: float ) |
方法说明
Returns the number of bands of the equalizer.
float
get_band_gain_db ( band_idx: int
) const1
Returns the band's gain at the specified index, in dB.
void
set_band_gain_db ( band_idx: int
, volume_db: float
)
Sets band's gain at the specified index, in dB.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。