mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-22 05:07:07 +01:00
Extend ctrl surface API to be more flexible when creating markers
This commit is contained in:
parent
ee4d673da1
commit
3f9fe81da9
3 changed files with 5 additions and 4 deletions
|
|
@ -152,10 +152,10 @@ BasicUI::goto_end ()
|
|||
}
|
||||
|
||||
void
|
||||
BasicUI::add_marker (const std::string& markername)
|
||||
BasicUI::add_marker (const std::string& markername, Location::Flags flags)
|
||||
{
|
||||
timepos_t where (session->audible_sample());
|
||||
Location *location = new Location (*session, where, where, markername, Location::IsMark);
|
||||
Location *location = new Location (*session, where, where, markername, flags);
|
||||
session->begin_reversible_command (_("add marker"));
|
||||
XMLNode &before = session->locations()->get_state();
|
||||
session->locations()->add (location, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue