PDA

View Full Version : Pausing the Background Music



Desmond
09-26-2003, 01:14 PM
<HTML> <HEAD> <TITLE>Pausing the Background Music</TITLE> </HEAD> <BODY> <h3>Pausing the Background Music</h3> <b>Document ID: IR10038</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 pause the background playing in your application. </p> <h3>DISCUSSION</h3> <p>When there is background music in a presentation, sometimes it is necessary to pause it. In AutoPlay Media Studio 5.0 this is accomplished by using the following action:<br> <br> <code>-- pause the audio in the background channel<br> Audio.Pause(CHANNEL_BACKGROUND);<br></code> <br> Alternatively you can use the following action to toggle the play/pause state:<br> <br> <code>Audio.TogglePlay(CHANNEL_BACKGROUND);<br></code> <br> This action will pause the background music if it is playing, and play the background music if it is paused. </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.Pause</b></li> <li><b>Program Reference | Actions | Audio | Audio.TogglePlay</b></li> </ul> <p>KEYWORDS: AutoPlay Media Studio 5.0, Actions, Audio, Pause, Toggle Play, Background, Music</p> <hr> <FONT SIZE=1> Last reviewed: September 26, 2003<br> Copyright 2003 <A HREF="http://www.indigorose.com" target="blank">Indigo Rose Corporation</a>. All rights reserved.<br> </FONT> </BODY> </HTML>