Improve group session (play, info)

This commit is contained in:
Bruno Herbelin
2022-03-27 23:38:35 +02:00
parent c6097e0397
commit 8a7a6ed4f5
4 changed files with 28 additions and 12 deletions

View File

@@ -119,6 +119,16 @@ void SessionSource::update(float dt)
}
void SessionSource::play (bool on)
{
paused_ = !on;
if (session_) {
for( SourceList::iterator it = session_->begin(); it != session_->end(); ++it)
(*it)->setActive(!paused_);
}
}
void SessionSource::replay ()
{
if (session_) {