Example #1
0
int MergerEditor::getPathForEditor(GenericEditor* editor)
{
    Merger* processor = (Merger*) getProcessor();
    
    for (int pathNum = 0; pathNum < 2; pathNum++)
    {
    switchSource(pathNum);
    
    if (processor->getSourceNode() != nullptr)
    {
        if (processor->getEditor() == editor)
            return pathNum;
    }
    }
    
    return -1;

}