Improved management of selection in Player

This commit is contained in:
Bruno
2021-06-07 22:53:29 +02:00
parent 53223d0876
commit 1717c143b2
4 changed files with 91 additions and 44 deletions

View File

@@ -770,6 +770,17 @@ SourceList Mixer::findSources (float depth_from, float depth_to)
return found;
}
SourceList Mixer::validate (const SourceList &list)
{
SourceList sl;
for( auto sit = list.begin(); sit != list.end(); ++sit) {
SourceList::iterator it = session_->find( *sit );
if (it != session_->end())
sl.push_back(*sit);
}
return sl;
}
void Mixer::setCurrentSource(uint64_t id)
{
setCurrentSource( session_->find(id) );