Skip to content
Browse files

Update inlet buffer refs for DspObjects also when the only message co…

…nnections are added. This ensures that code paths are correctly updated.
  • Loading branch information...
1 parent f6d4409 commit 8fbe8961caff3934b17fd827b8b44e535b2ff781 @mhroth committed
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/DspObject.cpp
View
7 src/DspObject.cpp
@@ -138,8 +138,9 @@ void DspObject::addConnectionFromObjectToInlet(MessageObject *messageObject, int
// get pointer to inletIndex-th element of dspBufferRefListAtInlet
vector<float *> *dspBufferRefList = &(*(dspBufferRefListAtInlet.begin() + inletIndex));
dspBufferRefList->push_back(dspObject->getDspBufferRefAtOutlet(outletIndex));
- updateInletBufferRefs(inletIndex);
}
+
+ updateInletBufferRefs(inletIndex);
}
void DspObject::removeConnectionFromObjectToInlet(MessageObject *messageObject, int outletIndex, int inletIndex) {
@@ -147,11 +148,11 @@ void DspObject::removeConnectionFromObjectToInlet(MessageObject *messageObject,
list<ObjectLetPair> *incomingConnections = &incomingDspConnections[inletIndex];
ObjectLetPair objectLetPair = make_pair(messageObject, outletIndex);
incomingConnections->remove(objectLetPair); // does this work?
-
- updateInletBufferRefs(inletIndex);
} else {
MessageObject::removeConnectionFromObjectToInlet(messageObject, outletIndex, inletIndex);
}
+
+ updateInletBufferRefs(inletIndex);
}
void DspObject::updateInletBufferRefs(unsigned int inletIndex) {

0 comments on commit 8fbe896

Please sign in to comment.
Something went wrong with that request. Please try again.