C4 Engine
C4 Engine API Documentation

Movie::GetMovieDuration

Defined in:  C4Movies.h
Returns the duration of an entire movie.
Prototype

MovieTime GetMovieDuration(voidconst;

Description
The GetMovieDuration function returns the duration an entire movie. This duration corresponds to the longest duration of all tracks contained in the movie, and not just the duration of the video track. It's possible for the audio track to be longer than the product of the number of video frames and the duration of each video frame.

The returned MovieTime type represents times in integer units of 36000 ticks per second.
See Also

Movie::GetVideoFrameCount

Movie::GetVideoFrameTime