From 21534494003c7922b46a2d37f3fb65a29fdd3e55 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 2 Oct 2017 12:35:32 -0400 Subject: tracks no longer need to be notified about speed changes --- libs/ardour/ardour/track.h | 1 - libs/ardour/session_transport.cc | 19 ------------------- libs/ardour/track.cc | 9 --------- 3 files changed, 29 deletions(-) diff --git a/libs/ardour/ardour/track.h b/libs/ardour/ardour/track.h index 74b04b82a7..7b21a77591 100644 --- a/libs/ardour/ardour/track.h +++ b/libs/ardour/ardour/track.h @@ -148,7 +148,6 @@ class LIBARDOUR_API Track : public Route, public Recordable samplecnt_t get_captured_samples (uint32_t n = 0) const; int set_loop (ARDOUR::Location *); void transport_looped (samplepos_t); - bool realtime_speed_change (); void transport_stopped_wallclock (struct tm &, time_t, bool); bool pending_overwrite () const; void set_slaved (bool); diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index bc4d9c53da..e7475ffc2c 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -1511,14 +1511,6 @@ Session::set_transport_speed (double speed, samplepos_t destination_sample, bool _default_transport_speed = speed; } - boost::shared_ptr rl = routes.reader(); - for (RouteList::iterator i = rl->begin(); i != rl->end(); ++i) { - boost::shared_ptr tr = boost::dynamic_pointer_cast (*i); - if (tr && tr->realtime_speed_change()) { - todo = PostTransportWork (todo | PostTransportSpeed); - } - } - if (todo) { add_post_transport_work (todo); _butler->schedule_transport_work (); @@ -1675,14 +1667,6 @@ Session::start_transport () _transport_speed = _default_transport_speed; _target_transport_speed = _transport_speed; - boost::shared_ptr rl = routes.reader(); - for (RouteList::iterator i = rl->begin(); i != rl->end(); ++i) { - boost::shared_ptr tr = boost::dynamic_pointer_cast (*i); - if (tr) { - tr->realtime_speed_change (); - } - } - if (!_engine.freewheeling()) { Timecode::Time time; timecode_time_subframes (_transport_sample, time); @@ -1861,9 +1845,6 @@ Session::use_sync_source (Slave* new_slave) for (RouteList::iterator i = rl->begin(); i != rl->end(); ++i) { boost::shared_ptr tr = boost::dynamic_pointer_cast (*i); if (tr && !tr->is_private_route()) { - if (tr->realtime_speed_change()) { - non_rt_required = true; - } tr->set_slaved (_slave != 0); } } diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc index f565547915..4e611211f3 100644 --- a/libs/ardour/track.cc +++ b/libs/ardour/track.cc @@ -573,15 +573,6 @@ Track::transport_looped (samplepos_t p) return _disk_writer->transport_looped (p); } -bool -Track::realtime_speed_change () -{ - if (_disk_reader->realtime_speed_change ()) { - return -1; - } - return _disk_writer->realtime_speed_change (); -} - void Track::realtime_handle_transport_stopped () { -- cgit v1.2.3