AudioEffectInstance
继承: RefCounted < Object
派生: AudioEffectSpectrumAnalyzerInstance
Manipulates the audio it receives for a given effect.
描述
An audio effect instance manipulates the audio it receives for a given effect. This instance is automatically created by an AudioEffect when it is added to a bus, and should usually not be created directly. If necessary, it can be fetched at run-time with AudioServer.get_bus_effect_instance.
方法
void | _process ( src_buffer: const void*, dst_buffer: AudioFrame*, frame_count: int ) virtual1 |
bool | _process_silence ( ) virtual1 const2 |
方法说明
void _process ( src_buffer: const void*, dst_buffer: AudioFrame*, frame_count: int ) virtual1
Called by the AudioServer to process this effect. When _process_silence is not overridden or it returns false, this method is called only when the bus is active.
Note: It is not useful to override this method in GDScript or C#. Only GDExtension can take advantage of it.
bool _process_silence ( ) virtual1 const2
Override this method to customize the processing behavior of this effect instance.
Should return true to force the AudioServer to always call _process, even if the bus has been muted or cannot otherwise be heard.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。