2 #include "ardour/graph.h"
3 #include "ardour/graphnode.h"
4 #include "ardour/route.h"
6 using namespace ARDOUR;
8 // ========================================== GraphNode
10 GraphNode::GraphNode( graph_ptr_t graph )
15 GraphNode::prep( int chain )
17 _refcount = _init_refcount[chain];
23 if (g_atomic_int_dec_and_test( &_refcount ))
24 _graph->trigger( this );
28 GraphNode::finish( int chain )
30 node_set_t::iterator i;
31 bool feeds_somebody = false;
32 for (i=_activation_set[chain].begin(); i!=_activation_set[chain].end(); i++)
35 feeds_somebody = true;
47 _graph->process_one_route( dynamic_cast<Route *>(this) );