mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 19:23:51 +01:00
bs412 lookahead
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user