Everything is a buffer

This commit is contained in:
2025-11-04 20:17:46 +01:00
parent 87598b5d65
commit 0adfa715d4
7 changed files with 403 additions and 69 deletions
+28
View File
@@ -0,0 +1,28 @@
#include <delay/buffer_multi.hpp>
#include <delay/buffer.hpp>
#include <cstdio>
#include <iostream>
#ifndef TEST_COMMON_H
#define TEST_COMMON_H
template<typename T>
void print(const dsp::Buffer<T> &v, size_t size, std::string name=std::string(""))
{
std::cout << "----------------------------------------------" << std::endl;
std::cout << "-" << name << std::endl;
std::cout << "----------------------------------------------" << std::endl;
for(int i=0; i < size; i++)
{
std::cout << v[i] << std::endl;
}
}
template<typename T>
bool check(const dsp::Buffer<T> &target, const dsp::Buffer<T> &actual)
{
assert(target == actual);
}
#endif