Audio in layers
Jun 15, 2016
Hi
I have a slide which has base layer containing buttons on the left hand side. Clicking a button causes a layer to appear but does not hide the buttons, i.e. the user can click buttons in any order and as fast as they like.
I have recorded audio on the base layer and also on each of the other layers. The problem is that the if the user clicks a button, the layer appears, the audio for that layer starts, but the audio for the base, if the timeline has not completed by the time the user clicks the button, continues. And of course, if the user user rapidly clicks several buttons, the effect is interesting.
I've searched the triggers looking for a way of stopping the audio if a button is clicked but I have not been able to solve the problem. I probably need to rethink how I am doing this. Does anyone have a solution to this challenge?
Regards
Steve
7 Replies
Have you put a trigger to stop or pause the media on the button that shows the layer? Put it above the trigger to show the layer. That should turn off the audio on the base, and if each layer hides other layers, starting a new layer will turn off the audio on all the other layers.
Thanks Walt
I’ll give that a go shortly.
Regards
Steve
Hi Walt
I’m sure you are not surprised that your suggestion works. There’s an
element that surprises me, however.
Each of 3 buttons are on the base layer, arranged vertically on the left.
Each layer shows a panel to the right of the buttons.
I put a trigger on each of the buttons to stop the audio on the base layer,
so whichever button is pressed, the base audio stops and the audio for the
associated layer starts. No surprise there.
What I cannot work out however is that once the audio on the base has been
stopped and the ‘layer audio’ starts, clicking any other button stops the
audio that had been playing on the layer and starts the audio on the new
layer. And whichever button I press from then on, I get the same (desired)
effect. But I cannot see why that is working. I thought I would have to
explicitly stop each layer’s audio with an additional trigger, but the only
audio my triggers refers to is the one on the base.
There’s a lot to learn.
Thanks again
Steve
Layers default to Hide other layers (which can be changed if you need), so showing one stops all the others.
When a layer is hidden, it stops everything that is going on in that layer; media, timeline, lists of triggers.
Alternately, you can take away the stop media triggers, and set each layer to Pause the timeline of the base layer. Then when a layer is closed, the base (and its audio) resumes. This may not be anything you want, but just FYI.
Thanks again Walt. It’s good to try out different ways of achieving an
effect.
Regards
Steve
Hi, Steve -- I see that Walt has offer some really great suggestions to assist you here! If you find that you are still in need of additional assistance and would like to share your file, you may do so by using the grey ADD ATTACHMENT button in the bottom left of the reply box and you can upload from there!
This discussion is closed. You can start a new discussion or contact Articulate Support.