switched all streams to double buffering

This commit is contained in:
Ryzerth
2020-12-25 16:58:07 +01:00
parent 450896b122
commit 42bc2d01f7
17 changed files with 158 additions and 171 deletions

View File

@ -6,6 +6,8 @@
#include <vector>
#include <algorithm>
#include <spdlog/spdlog.h>
#define FL_M_PI 3.1415926535f
namespace dsp {
@ -77,10 +79,10 @@ namespace dsp {
}
virtual void doStop() {
for (auto const& in : inputs) {
for (auto& in : inputs) {
in->stopReader();
}
for (auto const& out : outputs) {
for (auto& out : outputs) {
out->stopWriter();
}
@ -88,11 +90,11 @@ namespace dsp {
if (workerThread.joinable()) {
workerThread.join();
}
for (auto const& in : inputs) {
for (auto& in : inputs) {
in->clearReadStop();
}
for (auto const& out : outputs) {
for (auto& out : outputs) {
out->clearWriteStop();
}
}