Go to the source code of this file.
|
| namespace | fl |
| | Base definition for an LED controller.
|
| |
| namespace | fl::audio |
| |
◆ fl::audio::AutoGain::Stats
| struct fl::audio::AutoGain::Stats |
| Class Members |
|
float |
currentGain = 1.0f |
|
|
float |
inputRMS = 0.0f |
|
|
float |
integrator = 0.0f |
|
|
float |
outputRMS = 0.0f |
|
|
float |
peakEnvelope = 0.0f |
|
|
u32 |
samplesProcessed = 0 |
|
|
float |
targetGain = 1.0f |
|
◆ fl::audio::AutoGainConfig
| struct fl::audio::AutoGainConfig |
| Class Members |
|
bool |
enabled = true |
Enable automatic gain adjustment. |
|
float |
gainFollowFastTau = 0.38f |
Fast gain-follow time constant (seconds) — used when error is large. |
|
float |
gainFollowSlowTau = 12.3f |
Slow gain-follow time constant (seconds) — used when error is small. |
|
float |
ki = 1.7f |
Integral gain for PI controller. |
|
float |
kp = 0.6f |
Proportional gain for PI controller. |
|
float |
maxGain = 32.0f |
Maximum gain multiplier (prevents over-amplification) |
|
float |
minGain = 1.0f / 64.0f |
Minimum gain multiplier (prevents over-attenuation) |
|
float |
peakDecayTau = 3.3f |
Peak envelope decay time constant (seconds). Controls how quickly the peak tracker forgets old peaks. Longer = more stable.
|
|
AGCPreset |
preset = AGCPreset::AGCPreset_Normal |
AGC behavior preset (default: Normal) |
|
float |
targetRMSLevel = 8000.0f |
Target RMS level after gain (0-32767) The AGC will adjust gain to maintain this average level. |