summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-05-02 22:21:59 +0000
committerCarl Hetherington <carl@carlh.net>2011-05-02 22:21:59 +0000
commita4b1a1bb14515650d7120b7b2b3ac1874bbf3d5f (patch)
treec39288ef18f6e8d29284e59354fceaed5ada217b /libs/ardour/ardour
parent988348185ece58b9af4ecc3a919e7f4862fa9a54 (diff)
Factor out stop limit computation into its own method. Ignore stop-at-session-end if there is a punch range and punch-in is enabled (#4022).
git-svn-id: svn://localhost/ardour2/branches/3.0@9457 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r--libs/ardour/ardour/session.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h
index 82fe06a9f3..1d37f8583a 100644
--- a/libs/ardour/ardour/session.h
+++ b/libs/ardour/ardour/session.h
@@ -253,7 +253,7 @@ class Session : public PBD::StatefulDestructible, public PBD::ScopedConnectionLi
return (RecordState) g_atomic_int_get (&_record_status);
}
- bool actively_recording () {
+ bool actively_recording () const {
return record_status() == Recording;
}
@@ -1498,6 +1498,7 @@ class Session : public PBD::StatefulDestructible, public PBD::ScopedConnectionLi
void end_time_changed (framepos_t);
void set_track_monitor_input_status (bool);
+ framepos_t compute_stop_limit () const;
boost::shared_ptr<Speakers> _speakers;
};