PDA

View Full Version : Playing Background Music


Desmond
09-26-2003, 01:25 PM
<HTML> <HEAD> <TITLE>Playing Background Music</TITLE> </HEAD> <BODY> <h3>Playing Background Music</h3> <b>Document ID: IR10030</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 play background music in your application. </p> <h3>DISCUSSION</h3> <p>Playing soft music in the background of your application can serve to set the mood desired for your application.<br> <br> As an example, we will load background.ogg into the background audio channel of our project:<br> <br> Insert the following code into the On Show event of the first page in the project:<br> <br> <code> --loads background.ogg into the background channel, automatically plays, and loops<br> Audio.Load(CHANNEL_BACKGROUND, "AutoPlay\\Audio\\background.ogg", true, true);<br> </code> <br> An alternative way to add background music to your application is by using the Background Music tab on the Audio Settings dialog. To access this dialog: </p> <ol> <li>Choose Project > Audio Settings.<br> <br> </li> <li>Click the Add button.<br> <br> </li> <li>Select your audio file.<br> <br> </li> <li>Click OK.</li> </ol> <p>Repeat steps 2 and 3 before clicking OK to add more than one audio file.</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> </ul> <p>KEYWORDS: AutoPlay Media Studio 5.0, Load, Audio, Sound, Play, Background, Music, OGG </p> <hr> <FONT SIZE=1> Last reviewed: October 6, 2003<br> Copyright © 2003 <A HREF="http://www.indigorose.com" target="blank">Indigo Rose Corporation</a>. All rights reserved.<br> </FONT> </BODY> </HTML>