how 2 creat Mute?
Posted:
Fri Jun 17, 2005 12:24 am
by game_mate
how do i creat an acter that, when clicked on will stop a wav file and prevent any other wavs from playing, wich would usually play otherwise
. like a mute botton
Posted:
Fri Jun 17, 2005 7:47 am
by BeyondtheTech
I use a setup similar to this
stopSound(musicchannel);
musicchannel=PlayMusic2("data/music.ogg",musicvolume,65000,MEDIUM_PRIORITY_MUSIC);
That way I know what channel the music is on and I can stop it when I start a new track or if I need to stop it at any time, I just execute stopSound(musicchannel);
Of course you can set up variables for each sound you make so you know what channel they're playing on.