BugFix Implementation of Audio in Source

Generalized audio support into Source class, instead of MediaPlayer.
This commit is contained in:
Bruno Herbelin
2024-04-21 23:20:44 +02:00
parent 3e45ec7353
commit 7b5bc6d236
13 changed files with 248 additions and 156 deletions

View File

@@ -150,6 +150,11 @@ void SessionSource::update(float dt)
timer_ += guint64(dt * 1000.f) * GST_USECOND;
}
// update audio
for (auto it = session_->begin(); it != session_->end(); ++it) {
(*it)->setAudioVolumeFactor(Source::VOLUME_PARENT, blendingshader_->color.a);
}
// manage sources which failed
if ( !session_->failedSources().empty() ) {