Forum rules - please read before posting.

Music - Toggle Off Current Looping via Actions

Hallo all, qq regarding audio management via actions. Is there a way to turn off looping on a currently looping track via actions?
For context, I am looking for a way to allow a track to loop during a scene, then on leaving that scene to finish playing out its current loop, before advancing to the next track.

As far as I can see you are unable to queue a track after a looping track without some way of turning off that looping function independently of the track playing, as the looping track will never stop playing, and therefore it will never advance to the queued track. There's a good chance I've missed something somewhere however...

Thanks in advance!

Comments

  • Welcome to the community, @manyheadedmonster.

    Interesting question - this may be possible with a pair of Sound: Play music Actions.

    Try first using one with a Method of Stop, and zero transition time, and a second with a Method of Play, with Resume if played before? checked and Loop? unchecked.

  • Ahah this was word-for-word the first thing I tried actually. While it works, there's a noticeable pause when the track stops and restarts, though this may be because the scene is changing at pretty much the same time.
    If there isn't a specific action for it, I might try it again but have the music change handled after the scene changes, see if that smooths out the pause.

    I will report back a little later, thanks!

  • So the pause is definitely better if the scene change doesn't happen at the same time. There is a very tiny 'pop' still though. It's not the end of the world but it seems like it's maybe a side effect of doing it in a kind of hacky way.

  • edited April 2021

    Thanks for the feedback.

    I'll have a look and see if it's possible to add a means to prevent the current track from looping - this way, you can just queue up the next track as normal.

  • Update: Actually, it looks like - with some tweaks to the engine - the first of the three Actions I suggested above can be removed. I'll amend AC so that if you attempt to play a track that is already playing, and "Resume if already playing?" is checked, then it's "Loop" state will be updated by the new Action.

  • Greatt. Without the stop function step maybe that'll eliminate the popping. I guess it depends on whats happening behind the scenes though. Thanks for the response!

  • Without the stop function step maybe that'll eliminate the popping.

    That'll be the intent, yes.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.