Location API to remove xrun markers
This commit is contained in:
parent
5640f820d3
commit
951257909f
|
@ -202,6 +202,7 @@ public:
|
||||||
void remove (Location *);
|
void remove (Location *);
|
||||||
void clear ();
|
void clear ();
|
||||||
void clear_markers ();
|
void clear_markers ();
|
||||||
|
void clear_xrun_markers ();
|
||||||
void clear_ranges ();
|
void clear_ranges ();
|
||||||
|
|
||||||
XMLNode& get_state (void);
|
XMLNode& get_state (void);
|
||||||
|
|
|
@ -952,6 +952,29 @@ Locations::clear_markers ()
|
||||||
changed (); /* EMIT SIGNAL */
|
changed (); /* EMIT SIGNAL */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Locations::clear_xrun_markers ()
|
||||||
|
{
|
||||||
|
{
|
||||||
|
Glib::Threads::Mutex::Lock lm (lock);
|
||||||
|
LocationList::iterator tmp;
|
||||||
|
|
||||||
|
for (LocationList::iterator i = locations.begin(); i != locations.end(); ) {
|
||||||
|
tmp = i;
|
||||||
|
++tmp;
|
||||||
|
|
||||||
|
if ((*i)->is_xrun()) {
|
||||||
|
delete *i;
|
||||||
|
locations.erase (i);
|
||||||
|
}
|
||||||
|
|
||||||
|
i = tmp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
changed (); /* EMIT SIGNAL */
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Locations::clear_ranges ()
|
Locations::clear_ranges ()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user