13
0

add new location flag, IsCueMarker

This commit is contained in:
Paul Davis 2022-01-04 14:48:29 -07:00
parent 79a365edce
commit c2d18dabd5
2 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,7 @@ public:
IsSkipping = 0x100, /* skipping is active (or not) */
IsClockOrigin = 0x200,
IsXrun = 0x400,
IsCueMarker = 0x800,
};
Location (Session &);
@ -108,6 +109,7 @@ public:
bool is_mark () const { return _flags & IsMark; }
bool is_hidden () const { return _flags & IsHidden; }
bool is_cd_marker () const { return _flags & IsCDMarker; }
bool is_cue_marker () const { return _flags & IsCueMarker; }
bool is_session_range () const { return _flags & IsSessionRange; }
bool is_range_marker() const { return _flags & IsRangeMarker; }
bool is_skip() const { return _flags & IsSkip; }

View File

@ -965,6 +965,7 @@ LuaBindings::common (lua_State* L)
.addFunction ("is_mark", &Location::is_mark)
.addFunction ("is_hidden", &Location::is_hidden)
.addFunction ("is_cd_marker", &Location::is_cd_marker)
.addFunction ("is_cue_marker", &Location::is_cd_marker)
.addFunction ("is_session_range", &Location::is_session_range)
.addFunction ("is_range_marker", &Location::is_range_marker)
.endClass ()