Volume and Stop Sound
- set volume to (100)% — sets the volume (0 = silent, 100 = full).
- change volume by (-10) — gradually fades volume up or down.
- stop all sounds — stops every sound currently playing.
Fade-Out Effect
- repeat (10) → change volume by (-10) → wait (0.1) seconds
This reduces volume from 100% to 0% over 1 second, creating a smooth fade-out.