Desmond
10-03-2003, 04:14 PM
<HTML> <HEAD> <TITLE>AutoPlay Media Studio 5.0 Knowledge Base</TITLE> </HEAD> <BODY> <h3>Adjusting Volume Levels</h3> <b>Document ID: IR10096</b> <hr> The information in this article applies to: <ul> <li>AutoPlay Media Studio 5.0 Standard Edition</li> <li>AutoPlay Media Studio 5.0 Professional Edition</li> </ul> <hr> <h3>SUMMARY</h3> <p>This article describes how to adjust the volume level in your application.</p> <h3>DISCUSSION</h3> <p>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 5.0, use the Audio.SetVolume action.<br> <br> As an example, we will play a soundtrack in the background, and set the volume to be 25% of maximum:<br> <br> Insert the following code into the On Show event of your page:<br> <br> <code>Audio.Load(CHANNEL_BACKGROUND, "your_audio_here.ogg", true, true);<br> <br> -- set the volume level to 25% of 255:<br> Audio.SetVolume(CHANNEL_BACKGROUND, 63); <br></code> </p> <h3>MORE INFORMATION</h3> <p>For more information please see the following topics in the AutoPlay Media Studio 5.0 help file:</p> <ul> <li><b>Program Reference | Actions | Audio | Audio.Load</b></li> <li><b>Program Reference | Actions | Audio | Audio.SetVolume</b></li> </ul> <p>KEYWORDS: AutoPlay Media Studio 5.0, Audio, Sound, Volume </p> <hr> <FONT SIZE=1> Last reviewed: October 3, 2003<br> Copyright © 2003 <A HREF="http://www.indigorose.com" target="blank">Indigo Rose Corporation</a>. All rights reserved.<br> </FONT> </BODY> </HTML>