2021-07-28 12:40:34 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
2022-09-18 03:38:22 +02:00
|
|
|
#include "Biquad.h"
|
2021-07-28 12:40:34 +02:00
|
|
|
#include "TimeConstDelay.h"
|
|
|
|
|
|
|
|
|
|
|
|
class DepthSurround {
|
|
|
|
public:
|
|
|
|
DepthSurround();
|
|
|
|
|
2022-08-23 00:26:44 +02:00
|
|
|
void Process(float *samples, uint32_t size);
|
|
|
|
|
2021-07-28 12:40:34 +02:00
|
|
|
void RefreshStrength(short strength);
|
2022-08-23 00:26:44 +02:00
|
|
|
|
2021-07-28 12:40:34 +02:00
|
|
|
void SetSamplingRate(uint32_t samplerate);
|
2022-08-23 00:26:44 +02:00
|
|
|
|
2021-07-28 12:40:34 +02:00
|
|
|
void SetStrength(short strength);
|
|
|
|
|
|
|
|
short strength;
|
|
|
|
bool enabled;
|
|
|
|
bool strengthAtLeast500;
|
|
|
|
uint32_t gain;
|
|
|
|
float prev[2];
|
|
|
|
TimeConstDelay delay[2];
|
2022-09-18 03:38:22 +02:00
|
|
|
Biquad highpass;
|
2021-07-28 12:40:34 +02:00
|
|
|
};
|