add new type of location, with _flags & IsSkip being non-zero
This commit is contained in:
parent
99ac4755af
commit
2e81bab899
@ -51,7 +51,8 @@ class LIBARDOUR_API Location : public SessionHandleRef, public PBD::StatefulDest
|
|||||||
IsHidden = 0x8,
|
IsHidden = 0x8,
|
||||||
IsCDMarker = 0x10,
|
IsCDMarker = 0x10,
|
||||||
IsRangeMarker = 0x20,
|
IsRangeMarker = 0x20,
|
||||||
IsSessionRange = 0x40
|
IsSessionRange = 0x40,
|
||||||
|
IsSkip = 0x80,
|
||||||
};
|
};
|
||||||
|
|
||||||
Location (Session &);
|
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_cd_marker () const { return _flags & IsCDMarker; }
|
||||||
bool is_session_range () const { return _flags & IsSessionRange; }
|
bool is_session_range () const { return _flags & IsSessionRange; }
|
||||||
bool is_range_marker() const { return _flags & IsRangeMarker; }
|
bool is_range_marker() const { return _flags & IsRangeMarker; }
|
||||||
|
bool is_skip() const { return _flags & IsSkip; }
|
||||||
bool matches (Flags f) const { return _flags & f; }
|
bool matches (Flags f) const { return _flags & f; }
|
||||||
|
|
||||||
Flags flags () const { return _flags; }
|
Flags flags () const { return _flags; }
|
||||||
|
@ -1355,7 +1355,7 @@ Session::sync_locations_to_skips (Locations::LocationList& locations)
|
|||||||
|
|
||||||
location = *i;
|
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);
|
SessionEvent* ev = new SessionEvent (SessionEvent::LocateRoll, SessionEvent::Add, location->start(), location->end(), 1.0);
|
||||||
queue_event (ev);
|
queue_event (ev);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user