0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 19:23:51 +01:00
This commit is contained in:
2025-08-02 18:16:31 +02:00
parent a7a3b49452
commit 122677ef1e
2 changed files with 2 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ void initAGC(AGC* agc, int sampleRate, float targetLevel, float minGain, float m
agc->releaseCoef = expf(-1.0f / (sampleRate * releaseTime));
agc->rmsAlpha = expf(-1.0f / (sampleRate * 0.025f));
agc->rmsBeta = 1.0f - agc->rmsAlpha;
agc->sampleRate = sampleRate;
agc->currentGain = 1.0f;
agc->currentLevel = 0.0f;