Changed Group ALL sources action to Group ACTIVE sources

Manage mixing groups and clones on the way. This makes the action more flexible for the user, allowing to group only a selection.
This commit is contained in:
Bruno Herbelin
2022-07-06 23:34:36 +02:00
parent 93cb12be89
commit d77371912b
7 changed files with 53 additions and 15 deletions

View File

@@ -305,8 +305,10 @@ SourceList::iterator Session::deleteSource(Source *s)
return its;
}
void Session::removeSource(Source *s)
SourceList::iterator Session::removeSource(Source *s)
{
SourceList::iterator ret = sources_.end();
// lock before change
access_.lock();
@@ -320,11 +322,13 @@ void Session::removeSource(Source *s)
if (s->mixingGroup() != nullptr)
s->mixingGroup()->detach(s);
// erase the source from the update list & get next element
sources_.erase(its);
ret = sources_.erase(its);
}
// unlock access
access_.unlock();
return ret;
}
Source *Session::popSource()