2021-07-30 21:51:26 +02:00
|
|
|
#pragma once
|
|
|
|
|
2022-08-30 00:39:15 +02:00
|
|
|
#include <cstdint>
|
2021-07-30 21:51:26 +02:00
|
|
|
#include "../utils/MultiBiquad.h"
|
2022-09-18 03:38:22 +02:00
|
|
|
#include "../utils/Biquad.h"
|
2021-07-30 21:51:26 +02:00
|
|
|
|
|
|
|
class SpeakerCorrection {
|
|
|
|
public:
|
|
|
|
SpeakerCorrection();
|
|
|
|
|
2022-08-23 00:26:44 +02:00
|
|
|
void Process(float *samples, uint32_t size);
|
2021-07-30 21:51:26 +02:00
|
|
|
void Reset();
|
2022-10-13 03:01:20 +02:00
|
|
|
void SetEnable(bool enable);
|
2022-09-23 04:15:43 +02:00
|
|
|
void SetSamplingRate(uint32_t samplingRate);
|
2021-07-30 21:51:26 +02:00
|
|
|
|
2022-10-13 03:01:20 +02:00
|
|
|
private:
|
2022-09-23 04:15:43 +02:00
|
|
|
uint32_t samplingRate;
|
2022-10-13 03:01:20 +02:00
|
|
|
bool enable;
|
|
|
|
MultiBiquad highPass[2];
|
|
|
|
Biquad lowPass[2];
|
|
|
|
Biquad bandPass[2];
|
2021-07-30 21:51:26 +02:00
|
|
|
};
|