tracks no longer need to be notified about speed changes

This commit is contained in:
Paul Davis 2017-10-02 12:35:32 -04:00
parent 9775c5c9f1
commit 2153449400
3 changed files with 0 additions and 29 deletions

View File

@ -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);

View File

@ -1511,14 +1511,6 @@ Session::set_transport_speed (double speed, samplepos_t destination_sample, bool
_default_transport_speed = speed;
}
boost::shared_ptr<RouteList> rl = routes.reader();
for (RouteList::iterator i = rl->begin(); i != rl->end(); ++i) {
boost::shared_ptr<Track> tr = boost::dynamic_pointer_cast<Track> (*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<RouteList> rl = routes.reader();
for (RouteList::iterator i = rl->begin(); i != rl->end(); ++i) {
boost::shared_ptr<Track> tr = boost::dynamic_pointer_cast<Track> (*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<Track> tr = boost::dynamic_pointer_cast<Track> (*i);
if (tr && !tr->is_private_route()) {
if (tr->realtime_speed_change()) {
non_rt_required = true;
}
tr->set_slaved (_slave != 0);
}
}

View File

@ -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 ()
{