if using only 1 processor for DSP, do not use the graph code to execute routes - fallback to original unthreaded code
git-svn-id: svn://localhost/ardour2/branches/3.0@8741 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d3300660a3
commit
44d938b6b2
@ -106,9 +106,10 @@ Session::no_roll (pframes_t nframes)
|
||||
_click_io->silence (nframes);
|
||||
}
|
||||
|
||||
if (Config->get_processor_usage() != 1) {
|
||||
DEBUG_TRACE(DEBUG::Graph,"calling graph/no-roll\n");
|
||||
route_graph->routes_no_roll( nframes, _transport_frame, end_frame, non_realtime_work_pending(), actively_recording(), declick);
|
||||
/*
|
||||
} else {
|
||||
for (RouteList::iterator i = r->begin(); i != r->end(); ++i) {
|
||||
|
||||
if ((*i)->is_hidden()) {
|
||||
@ -124,7 +125,7 @@ Session::no_roll (pframes_t nframes)
|
||||
break;
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
@ -147,9 +148,12 @@ Session::process_routes (pframes_t nframes, bool& need_butler)
|
||||
const framepos_t start_frame = _transport_frame;
|
||||
const framepos_t end_frame = _transport_frame + floor (nframes * _transport_speed);
|
||||
|
||||
if (Config->get_processor_usage() != 1) {
|
||||
DEBUG_TRACE(DEBUG::Graph,"calling graph/process-routes\n");
|
||||
route_graph->process_routes( nframes, start_frame, end_frame, declick, record_active, rec_monitors, need_butler);
|
||||
/*
|
||||
|
||||
} else {
|
||||
|
||||
for (RouteList::iterator i = r->begin(); i != r->end(); ++i) {
|
||||
|
||||
int ret;
|
||||
@ -165,7 +169,8 @@ Session::process_routes (pframes_t nframes, bool& need_butler)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -185,8 +190,10 @@ Session::silent_process_routes (pframes_t nframes, bool& need_butler)
|
||||
const framepos_t start_frame = _transport_frame;
|
||||
const framepos_t end_frame = _transport_frame + lrintf(nframes * _transport_speed);
|
||||
|
||||
if (Config->get_processor_usage() != 1) {
|
||||
cerr << "GRAPH PROCESS\n";
|
||||
route_graph->silent_process_routes( nframes, start_frame, end_frame, record_active, rec_monitors, need_butler);
|
||||
/*
|
||||
} else {
|
||||
for (RouteList::iterator i = r->begin(); i != r->end(); ++i) {
|
||||
|
||||
int ret;
|
||||
@ -200,7 +207,8 @@ Session::silent_process_routes (pframes_t nframes, bool& need_butler)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user