Page 1 of 1

Re: Java code to adjust audio clip volume using EVAL action??

Posted: Sun Oct 13, 2024 7:44 pm
by Bright_Sprinkler
Hi,

use:

Sound.get('sound').setVolume(0.5);

You will need to give your sound a name in the editor.
The volume needs to be between 0 and 1. 0.5 for e.g. is 50% volume.

ps: This is JavaScript not Java.