ViPERFX_RE/src/cpp/viper/utils/DepthSurround.h
2022-09-23 04:15:43 +02:00

25 lines
486 B
C++

#pragma once
#include <cstdint>
#include "Biquad.h"
#include "TimeConstDelay.h"
class DepthSurround {
public:
DepthSurround();
void Process(float *samples, uint32_t size);
void RefreshStrength(short strength);
void SetSamplingRate(uint32_t samplingRate);
void SetStrength(short strength);
private:
short strength;
bool enabled;
bool strengthAtLeast500;
float gain;
float prev[2];
TimeConstDelay timeConstDelay[2];
Biquad highpass;
};