Remove global declick API
[ardour.git] / libs / ardour / graph.cc
index eb9ebca682681f87c8c490177fddca802e020c52..0389b2ef1a0e62e6e06aeeae4a4fa440787f3b65 100644 (file)
@@ -513,7 +513,7 @@ Graph::dump (int chain)
 }
 
 int
-Graph::process_routes (pframes_t nframes, samplepos_t start_sample, samplepos_t end_sample, int declick, bool& need_butler)
+Graph::process_routes (pframes_t nframes, samplepos_t start_sample, samplepos_t end_sample, bool& need_butler)
 {
        DEBUG_TRACE (DEBUG::ProcessThreads, string_compose ("graph execution from %1 to %2 = %3\n", start_sample, end_sample, nframes));
 
@@ -522,7 +522,6 @@ Graph::process_routes (pframes_t nframes, samplepos_t start_sample, samplepos_t
        _process_nframes = nframes;
        _process_start_sample = start_sample;
        _process_end_sample = end_sample;
-       _process_declick = declick;
 
        _process_noroll = false;
        _process_retval = 0;
@@ -539,8 +538,7 @@ Graph::process_routes (pframes_t nframes, samplepos_t start_sample, samplepos_t
 }
 
 int
-Graph::routes_no_roll (pframes_t nframes, samplepos_t start_sample, samplepos_t end_sample,
-                       bool non_rt_pending, int declick)
+Graph::routes_no_roll (pframes_t nframes, samplepos_t start_sample, samplepos_t end_sample, bool non_rt_pending)
 {
        DEBUG_TRACE (DEBUG::ProcessThreads, string_compose ("no-roll graph execution from %1 to %2 = %3\n", start_sample, end_sample, nframes));
 
@@ -549,7 +547,6 @@ Graph::routes_no_roll (pframes_t nframes, samplepos_t start_sample, samplepos_t
        _process_nframes = nframes;
        _process_start_sample = start_sample;
        _process_end_sample = end_sample;
-       _process_declick = declick;
        _process_non_rt_pending = non_rt_pending;
 
        _process_noroll = true;
@@ -574,11 +571,9 @@ Graph::process_one_route (Route* route)
        DEBUG_TRACE (DEBUG::ProcessThreads, string_compose ("%1 runs route %2\n", pthread_name(), route->name()));
 
        if (_process_noroll) {
-               route->set_pending_declick (_process_declick);
                retval = route->no_roll (_process_nframes, _process_start_sample, _process_end_sample, _process_non_rt_pending);
        } else {
-               route->set_pending_declick (_process_declick);
-               retval = route->roll (_process_nframes, _process_start_sample, _process_end_sample, _process_declick, need_butler);
+               retval = route->roll (_process_nframes, _process_start_sample, _process_end_sample, need_butler);
        }
 
        if (retval) {