added a recorder module

This commit is contained in:
Ryzerth
2020-08-18 00:56:51 +02:00
parent b56aab8f74
commit 649be86cb6
11 changed files with 318 additions and 8 deletions

View File

@@ -3,6 +3,7 @@
#include <dsp/stream.h>
#include <dsp/types.h>
#include <vector>
#include <spdlog/spdlog.h>
namespace dsp {
class Splitter {
@@ -144,7 +145,7 @@ namespace dsp {
for (int i = 0; i < outputCount; i++) {
if (outputs[i] == stream) {
outputs.erase(outputs.begin() + i);
break;
return;
}
}
}
@@ -179,11 +180,13 @@ namespace dsp {
MonoToStereo(stream<float>* input, int bufferSize) {
_in = input;
_bufferSize = bufferSize;
output.init(bufferSize * 2);
}
void init(stream<float>* input, int bufferSize) {
_in = input;
_bufferSize = bufferSize;
output.init(bufferSize * 2);
}
void start() {