/
AudioEffectLimiter.hx
64 lines (49 loc) · 1.84 KB
/
AudioEffectLimiter.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Automatically generated Godot externs: DO NOT EDIT
// MIT licensed, see LICENSE.md
package godot;
import cs.system.*;
/**
A limiter is similar to a compressor, but it's less flexible and designed to disallow sound going over a given dB threshold. Adding one in the Master bus is always recommended to reduce the effects of clipping.
Soft clipping starts to reduce the peaks a little below the threshold level and progressively increases its effect as the input level increases such that the threshold is never exceeded.
**/
@:libType
@:csNative
@:native("Godot.AudioEffectLimiter")
@:autoBuild(godot.Godot.buildUserClass())
extern class AudioEffectLimiter extends godot.AudioEffect {
@:native("SoftClipRatio")
public var softClipRatio:Single;
/**
Applies a gain to the limited waves, in decibels. Value can range from 0 to 6.
**/
@:native("SoftClipDb")
public var softClipDb:Single;
/**
Threshold from which the limiter begins to be active, in decibels. Value can range from -30 to 0.
**/
@:native("ThresholdDb")
public var thresholdDb:Single;
/**
The waveform's maximum allowed value, in decibels. Value can range from -20 to -0.1.
**/
@:native("CeilingDb")
public var ceilingDb:Single;
@:native("new")
public function new():Void;
@:native("SetCeilingDb")
public function setCeilingDb(ceiling:Single):Void;
@:native("GetCeilingDb")
public function getCeilingDb():Single;
@:native("SetThresholdDb")
public function setThresholdDb(threshold:Single):Void;
@:native("GetThresholdDb")
public function getThresholdDb():Single;
@:native("SetSoftClipDb")
public function setSoftClipDb(softClip:Single):Void;
@:native("GetSoftClipDb")
public function getSoftClipDb():Single;
@:native("SetSoftClipRatio")
public function setSoftClipRatio(softClip:Single):Void;
@:native("GetSoftClipRatio")
public function getSoftClipRatio():Single;
}