mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-07-30 16:29:15 +02:00
start modularization
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
#include <math.h>
|
||||
|
||||
typedef struct {
|
||||
float targetLevel;
|
||||
float maxGain;
|
||||
float minGain;
|
||||
float attackTime;
|
||||
float releaseTime;
|
||||
|
||||
float currentGain;
|
||||
float currentLevel;
|
||||
|
||||
int sampleRate;
|
||||
float attackCoef;
|
||||
float releaseCoef;
|
||||
|
||||
float rms_buffer;
|
||||
float rmsAlpha;
|
||||
} AGC;
|
||||
|
||||
void initAGC(AGC* agc, int sampleRate, float targetLevel, float minGain, float maxGain, float attackTime, float releaseTime);
|
||||
float process_agc(AGC* agc, float sidechain);
|
||||
Reference in New Issue
Block a user