Audio save recall

Hi everyone, I am trying to have FMOD audio save time position on game save and reload at that position on game restart. Is this possible? If so, how could I go about doing that?

Hi!

Channel::getPosition with the API.
Be careful with nested events, this can quickly become a nightmare :wink:

Hi,

Yes, this is definitely possible. A common approach is to use Studio::EventInstance::getTimelinePosition to retrieve the playback position when saving, and then use Studio::EventInstance::setTimelinePosition to restore it when loading the game.

Just make sure you start the event before calling setTimelinePosition, or the position might not apply correctly.

Hope this helps!