#include <TimeContextC.h>
Time context is helper class which provides the timing information to the effect plugin class. There are also couple of methods which helps converting timing information provided in FPS form to the Demopaja time and back.
This class is implemented by the system.
|
Default constructor (used internally).
|
|
Default destructor (used internally).
|
|
Converts time in FPS timecode to Demopaja timecode.
int32 i32FPS = 30; int32 i32FirstFrame = 10; int32 i32LastFrame = 520; int32 i32Length = i32LastFrame - i32FirstFrame; // Convert the time. (FPS -> Demopaja) float64 f64Time = pTimeContext->convert_fps_to_time( i32Length, i32FPS ); |
|
Converts time in Demopaja timecode to FPS timecode.
int32 i32FPS = 30; int32 i32TicksPerFrame = 160; // Convert the time. (Demopaja -> FPS) m_i32Frame = (int32)(pTimeContext->convert_time_to_fps( i32Time, i32FPS ) * (float64)i32TicksPerFrame); // Adjust the animation to start at the first frame. m_i32Frame += i32FirstFrame * i32TicksPerFrame; |
|
Returns beats per minute (BPM).
|
|
Returns edit accuracy.
|
|
Returns quarter notes per beat.
|