Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2008
    Posts
    9

    Background Music

    I have added background music to my project. One of my buttons opens up a virtual tour that is located within the project's CD via a seperate program. How can I get the project's background music to mute when the virtual tour program runs, and then unmute when the user closes the virtual tour?

  2. #2
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    Quote Originally Posted by brohan View Post
    I have added background music to my project. One of my buttons opens up a virtual tour that is located within the project's CD via a seperate program. How can I get the project's background music to mute when the virtual tour program runs, and then unmute when the user closes the virtual tour?
    One way to do this woud be:

    Place Audio.Pause(5) and Page.Timer(2000) before or after calling the virtual Tour ,exe file - this will pause the background audio file and start the page timer.

    'On timer' from the page that called the executable, you can use Windows.EnumerateProcesses() to determine if the virtual tour program is still running. When it's no longer running use Audio.Play(5) to continue the background music and stop the page timer.

    That's a little sketchy but should give you the idea. hth

  3. #3
    Join Date
    Jun 2008
    Posts
    9
    Thanks for the info. I am a brand new user, so it is a little sketchy for me, could you be a little more precise please? I really do appreciate the help.

  4. #4
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    Quote Originally Posted by brohan View Post
    Thanks for the info. I am a brand new user, so it is a little sketchy for me, could you be a little more precise please? I really do appreciate the help.
    This is a very straight forward approach and should give you the idea.
    Take a look at the example, clean it up for your purposes, and post back with any questions. hth
    Attached Files

  5. #5
    Join Date
    Jun 2008
    Posts
    9
    Again, thank you very much. I was able to add what you had in that app into my own, and of course it worked perfectly when loading the calculator progam into my app where I want to load another program, so now I just need to change the program to open.

    I really appreciate this!

Similar Threads

  1. Background music commands
    By CDrDup in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 08-20-2005, 07:11 AM
  2. Background Music
    By handuma in forum AutoPlay Media Studio 5.0
    Replies: 8
    Last Post: 10-29-2004, 10:17 PM
  3. Pausing the Background Music
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 01:14 PM
  4. Playing Background Music
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 12:25 PM
  5. 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

Posting Permissions

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