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

All about the past, current and future webteases and the art of webteasing in general.
---
Post Reply
User avatar
Bright_Sprinkler
Explorer
Explorer
Posts: 24
Joined: Sat Aug 28, 2021 8:11 pm
Contact:

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

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests