Hello,
I'm new to this forum and relatively new to twine so any aid would be greatly appreciated. I'm using Twine 1.4.2 and my story is in Sugarcube format.
I have figured out how to put audio into the story via referencing it on the internet and how to fade it in but when I want to fade the audio out it restarts the sound before doing so.
Is there anyway to fade out a track already playing?
Thanks
Comments
Sorry, should have been more specific in my original post.
Secondly, you may combine actions within a single invocation of <<audio>>, so you don't have to separate them as you're doing now. IOW, you can do things like the following: The examples in the documentation are fairly clear about that.
Finally, if the track is still playing when you invoke the fade out, then there should be no reason for the audio to restart (it should be impossible, really). How long is the audio you're trying this with? When and how are you invoking the fade out?
I've changed it to be combined now, and still having the same issue so that wasn't the culprit.
The track is 2 min 52 secs. I start it on one passage via <<audio "SoundName" loop fadein>> then have it loop for a couple passages until it reaches the passage where I'm trying to have it fade out with <<audio "SoundName" unloop fadeout>>
I'm referencing the audio from the StoryInit passage with <<cacheaudio "SoundName" "link.mp3">> if that helps
Which browser have you tested in? Can you create a demo showing the problem in action?
Thanks for your help!
I'll be updating both versions of SugarCube to work around this latest inanity from Redmond. You'll want to update your version of SugarCube (once the updates are published) and rebuild your story to get the workaround.