This commit is contained in:
AlexandreRouma
2025-09-09 17:28:30 -04:00
parent b9280ddae1
commit ae39eed0cb
26 changed files with 261 additions and 690 deletions

View File

@@ -1,18 +1,26 @@
#include <stdio.h>
#include "dsp/buffer.h"
#include "dsp/taps.h"
#include "dsp/complex.h"
#include <volk/volk.h>
#include "dsp/window.h"
#include "dsp/window/all.h"
void testFunc(const float* buf, size_t len) {
};
void testFunc(dsp::Window win) {
printf("win(0.0) = %f\n", win(0.0));
printf("win(0.5) = %f\n", win(0.5));
printf("win(1.0) = %f\n", win(1.0));
}
int main() {
float* test;
dsp::Taps<float> taps;
try {
testFunc(dsp::window::Hann());
testFunc(((const dsp::Taps<float>&)taps).data(), taps.size());
dsp::Window win = dsp::window::Triangular();
dsp::Window win2 = dsp::window::Hann();
return 0;
win = dsp::window::Hann();
return 0;
}
catch (const std::exception& e) {
fprintf(stderr, "ERROR: %s\n", e.what());
return -1;
}
}