AdvanceMovie
function · ui · primitive
- Address
0x78cf30· 624 bytes, up to0x78d19f- Meaning
- Advances the movie clock, decodes the due frames and runs the caption handlers
- Confidence
- verified, proof one
- Finding
- ui/movieframe#clock-and-frame-choice
Finding: Clock and frame choice in ui: the movie frame
The clock is the audio stream's play time (FSOUND_Stream_GetTime) while there is audio, else the time since the movie started. The frame to show is the clock times the rate, rounded; it is nudged by a
one-frame offset that follows the audio clock when that differs from the wall clock by more than two frames. A target at or beyond the frame count ends the movie. A target equal to the
shown frame does nothing; a target ahead of the next frame decodes the frames in between without showing them, and the last one is shown.
The derivation is in the doc.
Callers 1
Callees 7
- __ftol crt
- OsGetAsyncTimeMs core
- FrameScriptExecute ui
- FrameScriptExecuteVarArgs ui
- StopMoviePlayback ui
- DecodeMovieFrame ui
- _FSOUND_Stream_GetTime@4 unassigned
Calls and jumps by a bare address, from tables/calls.tsv.