Skip to content

Commit

Permalink
add more effect debugging output
Browse files Browse the repository at this point in the history
  • Loading branch information
Be-ing committed Jan 4, 2018
1 parent 937da9e commit 52f54d4
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/effects/effectsmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,16 +441,24 @@ void EffectsManager::processEffectsResponses() {

void EffectsManager::collectGarbage(const EffectsRequest* pRequest) {
if (pRequest->type == EffectsRequest::REMOVE_EFFECT_FROM_CHAIN) {
//qDebug() << debugString() << "delete" << pRequest->RemoveEffectFromChain.pEffect;
if (kEffectDebugOutput) {
qDebug() << debugString() << "delete" << pRequest->RemoveEffectFromChain.pEffect;
}
delete pRequest->RemoveEffectFromChain.pEffect;
} else if (pRequest->type == EffectsRequest::REMOVE_CHAIN_FROM_RACK) {
//qDebug() << debugString() << "delete" << request->RemoveEffectFromChain.pEffect;
if (kEffectDebugOutput) {
qDebug() << debugString() << "delete" << pRequest->RemoveEffectFromChain.pEffect;
}
delete pRequest->RemoveChainFromRack.pChain;
} else if (pRequest->type == EffectsRequest::REMOVE_EFFECT_RACK) {
//qDebug() << debugString() << "delete" << pRequest->RemoveEffectRack.pRack;
if (kEffectDebugOutput) {
qDebug() << debugString() << "delete" << pRequest->RemoveEffectRack.pRack;
}
delete pRequest->RemoveEffectRack.pRack;
} else if (pRequest->type == EffectsRequest::DISABLE_EFFECT_CHAIN_FOR_INPUT_CHANNEL) {
//qDebug() << debugString() << "deleting states for input channel" << pRequest->channel << "for EngineEffectChain" << pRequest->pTargetChain;
if (kEffectDebugOutput) {
qDebug() << debugString() << "deleting states for input channel" << pRequest->DisableInputChannelForChain.pChannelHandle << "for EngineEffectChain" << pRequest->pTargetChain;
}
pRequest->pTargetChain->deleteStatesForInputChannel(
pRequest->DisableInputChannelForChain.pChannelHandle);
}
Expand Down

0 comments on commit 52f54d4

Please sign in to comment.