I have separated a video clip from its audio. How to make sure they play in sync?


(Serge Ossorguine) #1

Video playing on an object (a kiosk, say). I have an FMOD emmiter on it that is playing the audio for the video. I want both to Start() as simultaneously as possible from first frame. Code?


(Cameron Baron) #2

You can access callbacks from events like FMOD_STUDIO_EVENT_CALLBACK_STARTING and FMOD_STUDIO_EVENT_CALLBACK_STARTED:
https://www.fmod.org/docs/content/generated/FMOD_STUDIO_EVENT_CALLBACK_TYPE.html

Event.GetTimelinePosition may also help with timing the event and/or video.
https://www.fmod.org/docs/content/generated/FMOD_Studio_EventInstance_GetTimelinePosition.html