AutoPlay Media Studio 5.0 Knowledge Base

Controlling Volume Settings at Run Time

Document ID: IR10084
The 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 control the volume at runtime.

DISCUSSION

As an example, we will create a project with two buttons: a volume increase button, and a volume decrease button.

Insert the following code into the On Click event of the volume increase button:

audio_channel = CHANNEL_USER1;
Audio.SetVolume(audio_channel, Audio.GetVolume(audio_channel)+20);

Insert the following code into the On Click event of the volume decrease button:

audio_channel = CHANNEL_USER1;
Audio.SetVolume(audio_channel, Audio.GetVolume(audio_channel)-20);

MORE INFORMATION

For more information please see the following topics in the AutoPlay Media Studio 5.0 help file:

  • Program Reference | Actions | Audio | Audio.GetVolume
  • Program Reference | Actions | Audio | Audio.SetVolume

KEYWORDS: AutoPlay Media Studio 5.0, Audio, Volume, Runtime, Up, Down


Last reviewed: October 3, 2003
Copyright © 2003 Indigo Rose Corporation. All rights reserved.