mirror of
https://github.com/AndroidAudioMods/ViPERFX_RE.git
synced 2025-06-08 10:39:29 +08:00
36 lines
722 B
C++
36 lines
722 B
C++
![]() |
#include "FIR.h"
|
||
|
|
||
|
FIR::FIR() {
|
||
|
|
||
|
}
|
||
|
|
||
|
FIR::~FIR() {
|
||
|
delete this->offsetBlock;
|
||
|
delete this->coeffs;
|
||
|
delete this->block;
|
||
|
}
|
||
|
|
||
|
void FIR::FilterSamples(int *samples, uint32_t size) {
|
||
|
this->FilterSamplesInterleaved(samples, size, 1);
|
||
|
}
|
||
|
|
||
|
void FIR::FilterSamplesInterleaved(int *samples, uint32_t size, uint32_t channels) {
|
||
|
|
||
|
}
|
||
|
|
||
|
int FIR::GetBlockLength() {
|
||
|
return this->blockLength;
|
||
|
}
|
||
|
|
||
|
int FIR::LoadCoefficients(float *coeffs, uint32_t coeffsize, int blockLength) {
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
void FIR::Reset() {
|
||
|
if (this->offsetBlock != nullptr && this->coeffsize + this->blockLength > -1) {
|
||
|
for (int i = 0; i < this->coeffsize + this->blockLength; i++) {
|
||
|
this->offsetBlock[i] = 0;
|
||
|
}
|
||
|
}
|
||
|
}
|