mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-17 13:19:59 +01:00
New support for AUDIO
Allows looking for audio streams in media files (settings) and enabling / disabling audio for each MediaPlayer individually. Control of volume per media, saving in session file.
This commit is contained in:
@@ -894,6 +894,14 @@ void SessionLoader::visit(MediaPlayer &n)
|
||||
n.setTimeline(tl);
|
||||
}
|
||||
|
||||
// audio
|
||||
int audiovolume = 100;
|
||||
mediaplayerNode->QueryIntAttribute("audio_volume", &audiovolume);
|
||||
n.setAudioVolume(audiovolume);
|
||||
bool audioenabled = false;
|
||||
mediaplayerNode->QueryBoolAttribute("audio", &audioenabled);
|
||||
n.setAudioEnabled(audioenabled);
|
||||
|
||||
// change play rate: will be activated in SessionLoader::visit (MediaSource& s)
|
||||
double speed = 1.0;
|
||||
mediaplayerNode->QueryDoubleAttribute("speed", &speed);
|
||||
|
||||
Reference in New Issue
Block a user