![]() |
Theora Playback Library
1.0.0
|
Public Member Functions | |
TheoraTimer () | |
virtual | ~TheoraTimer () |
virtual float | getTime () |
virtual void | update (float time_increase) |
advance the time. More... | |
virtual void | pause () |
virtual void | play () |
virtual bool | isPaused () |
virtual void | stop () |
virtual void | setSpeed (float speed) |
set's playback speed More... | |
virtual float | getSpeed () |
return the update speed 1.0 is the default More... | |
virtual void | seek (float time) |
change the current time. More... | |
Protected Attributes | |
float | mTime |
Current time in seconds. More... | |
float | mSpeed |
bool | mPaused |
Is the timer paused or not. More... | |
This is a Timer object, it is used to control the playback of a TheoraVideoClip.
You can inherit this class and make a timer that eg. plays twice as fast, or playbacks an audio track and uses it's time offset for syncronizing Video etc.
TheoraTimer::TheoraTimer | ( | ) |
|
virtual |
|
virtual |
return the update speed 1.0 is the default
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
change the current time.
if you're using another syncronization mechanism, make sure to adjust the time offset there
|
virtual |
set's playback speed
1.0 is the default. The speed factor multiplies time advance, thus setting the value higher will increase playback speed etc.
NOTE: depending on Timer implementation, it may not support setting the speed
|
virtual |
|
virtual |
advance the time.
If you're using another synronization system, eg. an audio track, then you can ignore this call or use it to perform other updates.
NOTE: this is called by TheoraVideoManager from the main thread
|
protected |
Is the timer paused or not.
|
protected |
|
protected |
Current time in seconds.