New Audio volume multipliers

Multiply the audio volume of Media Source by alpha and/or opacity (timeline).
This commit is contained in:
Bruno Herbelin
2023-10-28 16:18:15 +02:00
parent 5a1a88bf33
commit 053a5e9dbe
6 changed files with 87 additions and 13 deletions

View File

@@ -426,6 +426,7 @@ void SessionVisitor::visit(MediaPlayer &n)
if (n.audioAvailable()) {
newelement->SetAttribute("audio", n.audioEnabled());
newelement->SetAttribute("audio_volume", n.audioVolume());
newelement->SetAttribute("audio_mix", (int) n.audioVolumeMix());
}
if (!n.singleFrame()) {