diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-09-16 21:40:12 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-09-16 21:40:12 -0400 |
commit | 2e81bab8995cc7a1d52737b43cda0e7c3b9b4557 (patch) | |
tree | 84742b0222ca9559f7c4e1b46b5a75102a019311 /libs | |
parent | 99ac4755afd314986c4dd5d8bf5f4792fdcb8c69 (diff) |
add new type of location, with _flags & IsSkip being non-zero
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/ardour/location.h | 4 | ||||
-rw-r--r-- | libs/ardour/session.cc | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/ardour/location.h b/libs/ardour/ardour/location.h index eb35a1e209..bf8e663417 100644 --- a/libs/ardour/ardour/location.h +++ b/libs/ardour/ardour/location.h @@ -51,7 +51,8 @@ class LIBARDOUR_API Location : public SessionHandleRef, public PBD::StatefulDest IsHidden = 0x8, IsCDMarker = 0x10, IsRangeMarker = 0x20, - IsSessionRange = 0x40 + IsSessionRange = 0x40, + IsSkip = 0x80, }; Location (Session &); @@ -92,6 +93,7 @@ class LIBARDOUR_API Location : public SessionHandleRef, public PBD::StatefulDest bool is_cd_marker () const { return _flags & IsCDMarker; } bool is_session_range () const { return _flags & IsSessionRange; } bool is_range_marker() const { return _flags & IsRangeMarker; } + bool is_skip() const { return _flags & IsSkip; } bool matches (Flags f) const { return _flags & f; } Flags flags () const { return _flags; } diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index e7dd6a9cd1..d22d7553ca 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -1355,7 +1355,7 @@ Session::sync_locations_to_skips (Locations::LocationList& locations) location = *i; - if (location->is_range_marker()) { + if (location->is_skip()) { SessionEvent* ev = new SessionEvent (SessionEvent::LocateRoll, SessionEvent::Add, location->start(), location->end(), 1.0); queue_event (ev); } |