PDA

View Full Version : Toggle backgound music


Adam
11-22-2007, 01:11 PM
Question:

How can I toggle the background music in AutoPlay Media Studio 6.0?

Answer:

You can easily toggle the background music with a single action in AutoPlay Media Studio 6.0. To include this option in your project follow these steps:

-Create a button.
-On this button's On Click event, insert the following code:

Audio.TogglePlay(CHANNEL_BACKGROUND);

This example assumes the background music in your application is playing in channel CHANNEL_BACKGROUND. When the user clicks the button, the background music will pause if it was playing, and play if it was paused.