I like to add sound effects to triggers to provide feedback when the user clicks differents objects. When I have several triggers, I have to import the same file multiple times on each slide. I end up having the same file repeated in the timeline. Is there a way to import an audio file once and use it on multiple triggers and events and on multiple slides? I'm using SL 360.
You can certainly import an audio file once and use it on multiple triggers in a slide. See attached a quick example. If you want to use the same file, you would have to import it into the masterslide.
I looked at your file and I couldn't find audio files in the master slide. I imported audio files the master slide in my own project, but it doesn't seem to be available in regular slides. I still have to import from disk.
My example only showed that you can trigger the same audio file from several objects, For adding and triggering audio files that sit on the master, follow Phil's suggestion.
There is a caveat here I don't know if objects on the master get rendered many time, I have seen javascript create functions for every slide even though it is on the master
6 Replies
You can certainly import an audio file once and use it on multiple triggers in a slide. See attached a quick example. If you want to use the same file, you would have to import it into the masterslide.
I looked at your file and I couldn't find audio files in the master slide. I imported audio files the master slide in my own project, but it doesn't seem to be available in regular slides. I still have to import from disk.
to play an audio file off the master you will need to add a trigger on the master
Play audio when variable changes (call it soundEffect and make it numerical)
Then on your slide add a trigger when you want the audio to play, adjust variable soundEffect add 1
if the audio is already playing it will not play until it is stopped.
Hey Phil, Thanks for explaining this. Is simplifies things for me!
My example only showed that you can trigger the same audio file from several objects, For adding and triggering audio files that sit on the master, follow Phil's suggestion.
There is a caveat here I don't know if objects on the master get rendered many time, I have seen javascript create functions for every slide even though it is on the master