Mark,
Quote:
the button only mutes the FIRST wave in the timeline sequence. --The next waves will begin playing at default volumes
I would bet that if you press the Button
before the First .wav plays, the soundfile would still play at the Initial Volume you specified in the Timeline action Play Sound.
One solution could be this.
- set up a Page var or Pub var for Chan5volume
- in a Script Object, create a function. Name it as you like.
Code:
function PlayAudioFile( whichfile)
{
PlaySound( whichfile, false, 1, Chan5volume,0,-1, 0, 0,true, 5, true )
//modify parameters as needed
}
When you want to 'mute', simply change the value of the variable Chan5volume ( 0 to 100 )
[Edit:] I should clarify. Once the soundfile is playing, this does not change the volume. Use other methods to do that. The variable is a way to set or change what the initial, starting volume is.
-- In the Timeline, instead of an action to PlaySound, put in a Script event in the timeline. It just needs one line:
Code:
PlayAudioFile( wave_num01 )
//wave_num01 can be a variable with full path to the audio file, or a string for that path.
Others here will likely come up with some simpler, more direct means to do this.