Bugfix for OSX

This commit is contained in:
Ryzerth
2021-04-18 19:12:07 +02:00
parent 21cea65fbe
commit 06b524213f
21 changed files with 137 additions and 105 deletions

View File

@ -45,6 +45,20 @@ namespace dsp {
running = false;
}
void tempStart() {
if (tempStopped) {
doStart();
tempStopped = false;
}
}
void tempStop() {
if (running && !tempStopped) {
doStop();
tempStopped = true;
}
}
virtual int calcOutSize(int inSize) { return inSize; }
virtual int run() = 0;
@ -105,20 +119,6 @@ namespace dsp {
}
}
void tempStart() {
if (tempStopped) {
doStart();
tempStopped = false;
}
}
void tempStop() {
if (running && !tempStopped) {
doStop();
tempStopped = true;
}
}
std::vector<untyped_steam*> inputs;
std::vector<untyped_steam*> outputs;
@ -159,6 +159,20 @@ namespace dsp {
running = false;
}
void tempStart() {
if (tempStopped) {
doStart();
tempStopped = false;
}
}
void tempStop() {
if (running && !tempStopped) {
doStop();
tempStopped = true;
}
}
virtual int calcOutSize(int inSize) { return inSize; }
friend BLOCK;
@ -184,20 +198,6 @@ namespace dsp {
}
}
void tempStart() {
if (tempStopped) {
doStart();
tempStopped = false;
}
}
void tempStop() {
if (running && !tempStopped) {
doStop();
tempStopped = true;
}
}
std::vector<generic_unnamed_block*> blocks;
bool tempStopped = false;
bool running = false;