Adjusting Volume Levels
Document ID: IR10096The information in this article applies to:
- AutoPlay Media Studio 5.0 Standard Edition
- AutoPlay Media Studio 5.0 Professional Edition
SUMMARY
This article describes how to adjust the volume level in your application.
DISCUSSION
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.
As an example, we will play a soundtrack in the background, and set the volume to be 25% of maximum:
Insert the following code into the On Show event of your page:
Audio.Load(CHANNEL_BACKGROUND, "your_audio_here.ogg", true, true);
-- set the volume level to 25% of 255:
Audio.SetVolume(CHANNEL_BACKGROUND, 63);
MORE INFORMATION
For more information please see the following topics in the AutoPlay Media Studio 5.0 help file:
- Program Reference | Actions | Audio | Audio.Load
- Program Reference | Actions | Audio | Audio.SetVolume
KEYWORDS: AutoPlay Media Studio 5.0, Audio, Sound, Volume
Last reviewed: October 3, 2003
Copyright © 2003 Indigo Rose Corporation. All rights reserved.
Comment