ViPERFX_RE/src/cpp/viper/utils/DepthSurround.h

25 lines
486 B
C
Raw Normal View History

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();
void Process(float *samples, uint32_t size);
2021-07-28 12:40:34 +02:00
void RefreshStrength(short strength);
2022-09-23 04:15:43 +02:00
void SetSamplingRate(uint32_t samplingRate);
2021-07-28 12:40:34 +02:00
void SetStrength(short strength);
2022-09-23 04:15:43 +02:00
private:
2021-07-28 12:40:34 +02:00
short strength;
bool enabled;
bool strengthAtLeast500;
2022-09-23 04:15:43 +02:00
float gain;
2021-07-28 12:40:34 +02:00
float prev[2];
2022-09-23 04:15:43 +02:00
TimeConstDelay timeConstDelay[2];
2022-09-18 03:38:22 +02:00
Biquad highpass;
2021-07-28 12:40:34 +02:00
};