13
0

add Session::reset_transport_speed()

This commit is contained in:
Paul Davis 2021-04-15 23:09:00 -06:00
parent 1d97220cff
commit aeed50b1cc
2 changed files with 9 additions and 1 deletions

View File

@ -477,6 +477,8 @@ public:
void goto_start (bool and_roll = false);
void use_rf_shuttle_speed ();
void allow_auto_play (bool yn);
void reset_transport_speed (TransportRequestSource origin = TRS_UI);
void request_transport_speed (double speed, bool as_default = true, TransportRequestSource origin = TRS_UI);
void request_transport_speed_nonzero (double, bool as_default = true, TransportRequestSource origin = TRS_UI);
void request_overwrite_buffer (boost::shared_ptr<Track>, OverwriteReason);
@ -1343,7 +1345,7 @@ protected:
bool should_roll_after_locate () const;
double speed() const { return _transport_speed; }
samplepos_t position() const { return _transport_sample; }
void set_transport_speed (double speed, bool abort, bool clear_state, bool as_default);
void set_transport_speed (double speed, bool as_default);
bool need_declick_before_locate () const;
private:

View File

@ -856,6 +856,12 @@ Session::request_sync_source (boost::shared_ptr<TransportMaster> tm)
queue_event (ev);
}
void
Session::reset_transport_speed (TransportRequestSource origin)
{
request_transport_speed (1.0, true, origin);
}
void
Session::request_transport_speed (double speed, bool as_default, TransportRequestSource origin)
{