17. Set the audio deliberately
Muted and Volume (dB) belong to this Video element. They do not automatically pause scene music, stop other sounds or change the whole game’s audio preference.
| Volume setting | Practical use |
|---|---|
| 0 dB | No attenuation at this player’s volume control. |
| A negative value, such as -6 or -12 | Reduce this clip’s level. Judge the result with an audible clip. |
| Muted on | Silence this player even if its saved Volume field is higher. |
| A positive value | Raises the level. Check the resulting sound rather than assuming louder is better. |
The test-pattern clip shown in this guide is silent. Use a clip with speech or a clear sound to check audio. If music covers a spoken briefing, coordinate the music through its own actions or settings.
For a live player-level adjustment from a script, obtain the VideoStreamPlayer as shown in the playback chapters, then change its volume_db. This changes that player directly without reloading the element definition.
player.volume_db = -12.0The line above assumes player is a valid VideoStreamPlayer already obtained by your script. It is a decibel value, not a 0-to-100 percentage.
If you change the authored muted property through Change GUI Element Property, expect a stream reload. A paused clip or one with Autoplay off may need an explicit playback command afterward.
