mirror of
https://github.com/AlexandreRouma/dsp2.git
synced 2026-04-20 07:22:44 +00:00
progress
This commit is contained in:
30
src/main.cpp
30
src/main.cpp
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user