View Full Version : pause wav file
mikeyoung
04-01-2003, 01:49 PM
i want to pause all wave files when my mp3 file is playing.
all of my wave files are in the sounds tab (mouse over sounds) box any help would be nice
The only thing I can think of is to remove the wave files from Sounds Tab on the your objects.
Then in the corresponding event use a If statement
%Property% = MP3.GetProperty ("Play State")
IF (%Property% != "PLAYING" )
WAV.Play ("%SrcDir%\Click.WAV")
END IF
mikeyoung
04-01-2003, 02:23 PM
im real new at this can you explaine alittle more in depth
In each object you can set the sound file to play when you mouse-over or click the object. In your application, double click on one of the objects that is making the sound while your MP3 is playing and choose the Sounds Tab. Click on the Eraser to remove the sounds for both Mouse Over and Mouse Click.
Then go to the Actions tab. In the On Mouse Over event, put the following code.
%Property% = MP3.GetProperty ("Play State")
IF (%Property% != "PLAYING")
WAV.Play ("%SrcDir%\Mouse-Over.WAV")
END IF
Do the same for the Mouse Click event:
%Property% = MP3.GetProperty ("Play State")
IF (%Property% != "PLAYING")
WAV.Play ("%SrcDir%\Mouse-Click.WAV")
END IF
This would require you to have the WAv files in your Distribution folder to work properly.
mikeyoung
04-01-2003, 02:34 PM
i got it nevermind. thank you so much this will make a big diff
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.