mirror of
https://github.com/AndroidAudioMods/ViPERFX_RE.git
synced 2025-06-11 19:49:35 +08:00
27 lines
469 B
C++
27 lines
469 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
class FIR {
|
|
public:
|
|
FIR();
|
|
~FIR();
|
|
|
|
void FilterSamples(int *samples, uint32_t size);
|
|
void FilterSamplesInterleaved(int *samples, uint32_t size, uint32_t channels);
|
|
int GetBlockLength();
|
|
int LoadCoefficients(float *coeffs, uint32_t coeffsize, int blockLength);
|
|
void Reset();
|
|
|
|
private:
|
|
int *offsetBlock;
|
|
float *coeffs;
|
|
float *block;
|
|
int coeffsize;
|
|
int blockLength;
|
|
bool enabled;
|
|
|
|
};
|
|
|
|
|