- /* do we have a routing group associated with this node ? It may have a custom effect */
- if (node->direction == agl_input)
- rtg = pa_hashmap_get (router->rtgroups.input, agl_node_type_str (node->type));
- else
- rtg = pa_hashmap_get (router->rtgroups.output, agl_node_type_str (node->type));
+ rtg = agl_router_get_rtgroup_from_class(u, node->type, 0, node->direction);