- use std::vector
- removed views
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
#include "test_common.hpp"
|
||||
|
||||
#include <delay/buffer.hpp>
|
||||
#include <delay/buffer_view.hpp>
|
||||
#include <cstdio>
|
||||
|
||||
#include <iostream>
|
||||
@@ -27,13 +25,11 @@ int test_buffer_1()
|
||||
printf("i=%d: v=%d\n", i, v);
|
||||
}
|
||||
|
||||
auto v1 = dsp::BufferView<int>(buffer, 0);
|
||||
auto v2 = dsp::BufferView<int>(buffer, -5);
|
||||
auto v1 = dsp::Buffer<int>(buffer, 0);
|
||||
auto v2 = dsp::Buffer<int>(buffer, -5);
|
||||
|
||||
for(int i=0; i < buffer.capacity(); i++)
|
||||
{
|
||||
std::cout << buffer[i] << std::endl;
|
||||
}
|
||||
print(v1, v1.capacity());
|
||||
print(v2, v2.capacity());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user