bs412 lookahead

This commit is contained in:
2025-07-15 20:36:05 +02:00
parent 229ceff6d2
commit 6008d5e2e3
2 changed files with 13 additions and 1 deletions
+6
View File
@@ -5,10 +5,13 @@
#endif
#include <math.h>
#include <string.h>
#ifdef BS412_DEBUG
#include "../lib/debug.h"
#endif
#define BS412_LOOKAHEAD 2048 // samples
typedef struct
{
int mpx_deviation;
@@ -20,6 +23,9 @@ typedef struct
float max;
float gain;
double average;
float lookahead_samples[BS412_LOOKAHEAD + 1];
int lookahead_counter;
} BS412Compressor;
float dbr_to_deviation(float dbr);