From 2e81bab8995cc7a1d52737b43cda0e7c3b9b4557 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 16 Sep 2014 21:40:12 -0400 Subject: [PATCH] add new type of location, with _flags & IsSkip being non-zero --- libs/ardour/ardour/location.h | 4 +++- 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); }