even more stuff

This commit is contained in:
AlexandreRouma
2022-06-15 16:08:54 +02:00
parent 343ec6ca1c
commit d1318d3a0f
156 changed files with 24826 additions and 0 deletions

29
core/src/dsp/taps/tap.h Normal file
View File

@ -0,0 +1,29 @@
#pragma once
#include <volk/volk.h>
namespace dsp {
template<class T>
class tap {
public:
T* taps = NULL;
unsigned int size = 0;
};
namespace taps {
template<class T>
inline tap<T> alloc(int count) {
tap<T> taps;
taps.size = count;
taps.taps = buffer::alloc<T>(count);
return taps;
}
template<class T>
inline void free(tap<T>& taps) {
if (!taps.taps) { return; }
buffer::free(taps.taps);
taps.taps = NULL;
taps.size = 0;
}
}
}