AudioEffect
Inherits: Resource < RefCounted < Object
Inherited by: AudioEffectAmplify, AudioEffectCapture, AudioEffectChorus, AudioEffectCompressor, AudioEffectDelay, AudioEffectDistortion, AudioEffectEQ, AudioEffectFilter, AudioEffectHardLimiter, AudioEffectPanner, AudioEffectPhaser, AudioEffectPitchShift, AudioEffectRecord, AudioEffectReverb, AudioEffectSpectrumAnalyzer, AudioEffectStereoEnhance
Description
Section titled “Description”Base class for audio effect resources.
The base Resource for every audio effect. In the editor, an audio effect can be added to the current bus layout through the Audio panel. At run-time, it is also possible to manipulate audio effects through AudioSystem.add_bus_effect(), AudioSystem.remove_bus_effect(), and AudioSystem.get_bus_effect().
When applied on a bus, an audio effect creates a corresponding AudioEffectInstance. The instance is directly responsible for manipulating sound, based on the original audio effect’s properties.
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| AudioEffectInstance | _instantiate() virtual required |
Method descriptions
Section titled “Method descriptions”_instantiate
AudioEffectInstance _instantiate() virtual required
Override this method to customize the AudioEffectInstance created when this effect is applied on a bus in the editor’s Audio panel, or through AudioSystem.add_bus_effect().
Note: It is recommended to keep a reference to the original AudioEffect in the new instance. Depending on the implementation this allows the effect instance to listen for changes at run-time and be modified accordingly.
