mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-18 05:39:59 +01:00
BugFix Implementation of Audio in Source
Generalized audio support into Source class, instead of MediaPlayer.
This commit is contained in:
@@ -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() ) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user