0.2.0-dev Download ZIP
32 lines ·1.8 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="AudioEffectInstance" inherits="RefCounted" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Manipulates the audio it receives for a given effect. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | 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 [method AudioServer.get_bus_effect_instance]. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | <link title="Audio buses">$DOCS_URL/tutorials/audio/audio_buses.html</link> |
| 11 | <link title="Audio effects">$DOCS_URL/tutorials/audio/audio_effects.html</link> |
| 12 | </tutorials> |
| 13 | <methods> |
| 14 | <method name="_process" qualifiers="virtual required"> |
| 15 | <return type="void" /> |
| 16 | <param index="0" name="src_buffer" type="const AudioFrame*" /> |
| 17 | <param index="1" name="r_dst_buffer" type="AudioFrame*" /> |
| 18 | <param index="2" name="frame_count" type="int" /> |
| 19 | <description> |
| 20 | Called by the [AudioServer] to process this effect. When [method _process_silence] is not overridden or it returns [code]false[/code], this method is called only when the bus is active. |
| 21 | [b]Note:[/b] It is not useful to override this method in GDScript or C#. Only GDExtension can take advantage of it. |
| 22 | </description> |
| 23 | </method> |
| 24 | <method name="_process_silence" qualifiers="virtual const"> |
| 25 | <return type="bool" /> |
| 26 | <description> |
| 27 | Override this method to customize the processing behavior of this effect instance. |
| 28 | Should return [code]true[/code] to force the [AudioServer] to always call [method _process], even if the bus has been muted or cannot otherwise be heard. |
| 29 | </description> |
| 30 | </method> |
| 31 | </methods> |
| 32 | </class> |