Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2002
    Location
    Walden, NY
    Posts
    25

    Background music commands

    Hi, ALL:

    My project is a multimedia biz card. There are 5 screens. The opening screen plays an audio introduction by the client. When you click on screen 2 it starts background music that continues to play when you click on screens 3-5. When you click on screen 1 it stops the background music and plays the audio intro. That's all good. What I'm trying to figure out is the following:

    <> While background music is playing, if you go back to screen 2 the music restarts. How can I state in AMS that if bground music is already playing, disregard AudioLoad command?

    Thanks!

    Rich

  2. #2
    Join Date
    Aug 2003
    Posts
    2,427
    Hello,

    Rather than stopping the audio you need to pause it as explained here and by Corey in this post.
    Last edited by longedge; 08-20-2005 at 05:46 AM.

  3. #3
    Join Date
    Aug 2003
    Posts
    2,427
    Just to expand on that a little, on screen 1 pause the audio and then on all the other screens play it. If it's already playing then the command won't do anything but if you go from page 1 to say page 5 the music will continue to play from where it was paused.

  4. #4
    Join Date
    Sep 2002
    Location
    Walden, NY
    Posts
    25

    Star

    Quote Originally Posted by longedge
    Just to expand on that a little, on screen 1 pause the audio and then on all the other screens play it. If it's already playing then the command won't do anything but if you go from page 1 to say page 5 the music will continue to play from where it was paused.
    Like they say - BRILLIANT! And so logical...

    Thanks, longedge, for the help.

    Rich

  5. #5
    Join Date
    Sep 2002
    Location
    Walden, NY
    Posts
    25
    For those who have been playing at home, I did some tweaking:

    SCREEN 1 (with audio intro)

    On Show code:

    Audio.Stop(CHANNEL_BACKGROUND);
    Audio.Stop(CHANNEL_NARRATION);
    Audio.Load(CHANNEL_NARRATION, "AutoPlay\\Audio\\audiotrack.ogg", true, false);

    On Close code:

    Audio.Stop(CHANNEL_NARRATION);
    Audio.Load(CHANNEL_BACKGROUND, "AutoPlay\\Audio\\bgroundtrack.ogg", false, false);
    Audio.Play(CHANNEL_BACKGROUND);
    Audio.SetLooping(CHANNEL_BACKGROUND, true);

    What this does is stop the audio intro (channel_narration) when you click out of screen 1 and starts the background music when you go into any other screen.

    Hope this helps!

    Rich

Similar Threads

  1. Background Music
    By handuma in forum AutoPlay Media Studio 5.0
    Replies: 8
    Last Post: 10-29-2004, 10:17 PM
  2. Pausing the Background Music
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 01:14 PM
  3. Playing Background Music
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 12:25 PM
  4. Toggling the Background Music On and Off
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-22-2003, 02:59 PM
  5. Background music + mouse action audio
    By Disc-man in forum AutoPlay Menu Studio 3.0
    Replies: 4
    Last Post: 04-04-2002, 01:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts