This commit is contained in:
thomas committed 2026-10-18 14:06:40 +02:00
commit 2c2202e60d
2491 files changed
+1295990

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
#ifndef FX_SATURATION_H
#define FX_SATURATION_H
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
bool enabled;
float drive; /* 0.0 (aucun effet) a 1.0 (saturation maximale) */
float level; /* gain de compensation en sortie, typiquement 0.0 - 1.0 */
} FxSaturationParams;
typedef struct
{
float dc_block_x1;
float dc_block_y1;
} FxSaturationState;
void FxSaturation_Init(FxSaturationState *state, FxSaturationParams *params);
float FxSaturation_Process(FxSaturationState *state, const FxSaturationParams *params, float input);
#ifdef __cplusplus
}
#endif
#endif /* FX_SATURATION_H */