Adjust Volume Levels

guclusat

Tanınmış Üye
Süper Moderatör
Adjust Volume Levels
Adjusting the volume of an audio channel is useful when you want to, for example, have non-intrusive music playing in your project. To accomplish this in AutoPlay Media Studio, use the Audio.SetVolume action.

As an example, we will play a soundtrack in the background, and set the volume to be 25% of maximum:

  1. Insert the following code into the On Show event of your page:
Kod:
Audio.Load(CHANNEL_BACKGROUND, "your_audio_here.ogg", true, true);
Audio.SetVolume(CHANNEL_BACKGROUND, 63); -- sets the volume level to 25% of 255
 
Geri
Yukarı