commit 9978b182776b395b85760d25a7c915183818ed5b
parent 334765b147fadaa193d4730de4c96ebac5ad4b63
Author: Matt Demanett <matt@demanett.net>
Date: Sun, 8 Dec 2019 21:36:19 -0500
Maybe/probably fix a crash where method is called from the events thread rather than the audio thread(s). #92
Diffstat:
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/DADSRH.cpp b/src/DADSRH.cpp
@@ -96,7 +96,7 @@ void DADSRH::postProcess(const ProcessArgs& args) {
bool DADSRH::shouldTriggerOnNextLoad() {
for (int c = 0; c < _channels; ++c) {
- if (_core[c]->_stage != _core[c]->STOPPED_STAGE) {
+ if (_core[c] && _core[c]->_stage != _core[c]->STOPPED_STAGE) {
return true;
}
}
diff --git a/src/DADSRHPlus.cpp b/src/DADSRHPlus.cpp
@@ -96,7 +96,7 @@ void DADSRHPlus::postProcess(const ProcessArgs& args) {
bool DADSRHPlus::shouldTriggerOnNextLoad() {
for (int c = 0; c < _channels; ++c) {
- if (_core[c]->_stage != _core[c]->STOPPED_STAGE) {
+ if (_core[c] && _core[c]->_stage != _core[c]->STOPPED_STAGE) {
return true;
}
}
diff --git a/src/DGate.cpp b/src/DGate.cpp
@@ -108,7 +108,7 @@ bool DGate::stepStage(int c, Param& knob) {
bool DGate::shouldTriggerOnNextLoad() {
for (int c = 0; c < _channels; ++c) {
- if (_engines[c]->stage != STOPPED_STAGE) {
+ if (_engines[c] && _engines[c]->stage != STOPPED_STAGE) {
return true;
}
}
diff --git a/src/Shaper.cpp b/src/Shaper.cpp
@@ -79,7 +79,7 @@ void Shaper::postProcess(const ProcessArgs& args) {
bool Shaper::shouldTriggerOnNextLoad() {
for (int c = 0; c < _channels; ++c) {
- if (_core[c]->_stage != _core[c]->STOPPED_STAGE) {
+ if (_core[c] && _core[c]->_stage != _core[c]->STOPPED_STAGE) {
return true;
}
}
diff --git a/src/ShaperPlus.cpp b/src/ShaperPlus.cpp
@@ -79,7 +79,7 @@ void ShaperPlus::postProcess(const ProcessArgs& args) {
bool ShaperPlus::shouldTriggerOnNextLoad() {
for (int c = 0; c < _channels; ++c) {
- if (_core[c]->_stage != _core[c]->STOPPED_STAGE) {
+ if (_core[c] && _core[c]->_stage != _core[c]->STOPPED_STAGE) {
return true;
}
}