pd::Patch ofxPd::openPatch(pd::Patch& patch) { ofLogVerbose("Pd") << "opening patch: "+patch.filename()+" path: "+patch.path(); _LOCK(); Patch p = PdBase::openPatch(patch); _UNLOCK(); if(!p.isValid()) { ofLogError("Pd") << "opening patch \""+patch.filename()+"\" failed"; } return p; }
Patch PdBase::openPatch(pd::Patch& patch) { return openPatch(patch.filename(), patch.path()); }