Class AudioEffectHardLimiter
- Namespace
- Godot
- Assembly
- GodotSharp.dll
A limiter is an effect designed to disallow sound from going over a given dB threshold. Hard limiters predict volume peaks, and will smoothly apply gain reduction when a peak crosses the ceiling threshold to prevent clipping and distortion. It preserves the waveform and prevents it from crossing the ceiling threshold. Adding one in the Master bus is recommended as a safety measure to prevent sudden volume peaks from occurring, and to prevent distortion caused by clipping.
public class AudioEffectHardLimiter : AudioEffect, IDisposable
- Inheritance
-
AudioEffectHardLimiter
- Implements
- Inherited Members
Constructors
AudioEffectHardLimiter()
public AudioEffectHardLimiter()
Properties
CeilingDb
The waveform's maximum allowed value, in decibels. This value can range from -24.0
to 0.0
.
The default value of -0.3
prevents potential inter-sample peaks (ISP) from crossing over 0 dB, which can cause slight distortion on some older hardware.
public float CeilingDb { get; set; }
Property Value
PreGainDb
Gain to apply before limiting, in decibels.
public float PreGainDb { get; set; }
Property Value
Release
Time it takes in seconds for the gain reduction to fully release.
public float Release { get; set; }
Property Value
Methods
HasGodotClassMethod(in godot_string_name)
Check if the type contains a method with the given name. This method is used by Godot to check if a method exists before invoking it. Do not call or override this method.
protected override bool HasGodotClassMethod(in godot_string_name method)
Parameters
method
godot_string_nameName of the method to check for.
Returns
HasGodotClassSignal(in godot_string_name)
Check if the type contains a signal with the given name. This method is used by Godot to check if a signal exists before raising it. Do not call or override this method.
protected override bool HasGodotClassSignal(in godot_string_name signal)
Parameters
signal
godot_string_nameName of the signal to check for.
Returns
InvokeGodotClassMethod(in godot_string_name, NativeVariantPtrArgs, out godot_variant)
Invokes the method with the given name, using the given arguments. This method is used by Godot to invoke methods from the engine side. Do not call or override this method.
protected override bool InvokeGodotClassMethod(in godot_string_name method, NativeVariantPtrArgs args, out godot_variant ret)
Parameters
method
godot_string_nameName of the method to invoke.
args
NativeVariantPtrArgsArguments to use with the invoked method.
ret
godot_variantValue returned by the invoked method.