mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-17 13:19:59 +01:00
New Audio volume multipliers
Multiply the audio volume of Media Source by alpha and/or opacity (timeline).
This commit is contained in:
@@ -898,6 +898,9 @@ void SessionLoader::visit(MediaPlayer &n)
|
||||
int audiovolume = 100;
|
||||
mediaplayerNode->QueryIntAttribute("audio_volume", &audiovolume);
|
||||
n.setAudioVolume(audiovolume);
|
||||
int audiomix = 0;
|
||||
mediaplayerNode->QueryIntAttribute("audio_mix", &audiomix);
|
||||
n.setAudioVolumeMix( (MediaPlayer::VolumeFactorsMix) audiomix);
|
||||
bool audioenabled = false;
|
||||
mediaplayerNode->QueryBoolAttribute("audio", &audioenabled);
|
||||
n.setAudioEnabled(audioenabled);
|
||||
|
||||
Reference in New Issue
Block a user