diff options
Diffstat (limited to 'libs/ardour/ardour/session.h')
-rw-r--r-- | libs/ardour/ardour/session.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index 8dfcf228b9..3a980982c3 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -391,7 +391,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable void request_stop (bool abort = false); void request_locate (nframes_t frame, bool with_roll = false); - void request_play_loop (bool yn); + void request_play_loop (bool yn, bool leave_rolling = false); bool get_play_loop () const { return play_loop; } nframes_t last_transport_start() const { return _last_roll_location; } @@ -917,7 +917,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable void set_audio_range (std::list<AudioRange>&); void set_music_range (std::list<MusicRange>&); - void request_play_range (bool yn); + void request_play_range (bool yn, bool leave_rolling = false); bool get_play_range () const { return _play_range; } /* buffers for gain and pan */ @@ -1117,15 +1117,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable } } - bool maybe_stop (nframes_t limit) { - if ( (_transport_speed > 0.0f && _transport_frame >= limit) - || (_transport_speed < 0.0f && _transport_frame == 0) ) { - stop_transport (); - return true; - } - return false; - } - + bool maybe_stop (nframes_t limit); bool maybe_sync_start (nframes_t&); void check_declick_out (); @@ -1369,7 +1361,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable void change_midi_ports (); int use_config_midi_ports (); - void set_play_loop (bool yn); + void set_play_loop (bool yn, bool leave_rolling); void overwrite_some_buffers (Diskstream*); void flush_all_inserts (); int micro_locate (nframes_t distance); @@ -1627,7 +1619,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable std::list<AudioRange> current_audio_range; bool _play_range; - void set_play_range (bool yn); + void set_play_range (bool yn, bool leave_rolling); void setup_auto_play (); /* main outs */ |