Class that controls playback of peekabot recordings. More...
Public Member Functions | |
| Recording (boost::shared_ptr< RecordingImpl > impl) | |
| void | play () |
| Start playback. | |
| void | pause () |
| Pause playback. | |
| bool | is_paused () const |
| Returns true if playback is currently paused. | |
| bool | is_finished () const |
| Returns true if playback of the recording has finished. | |
| void | step (size_t n=1) |
| Step n operations. | |
| void | step (const boost::posix_time::time_duration &td) |
| Step the specified amount of time. | |
| void | set_playback_speed (double factor) |
| Change the playback speed. | |
| double | get_playback_speed () const |
| Get the current playback speed. | |
| boost::posix_time::time_duration | elapsed () const |
| Returns the elapsed playback time. | |
| boost::posix_time::time_duration | duration () const |
| Returns the recordings total duration. | |
Class that controls playback of peekabot recordings.
Upon creation, playback is paused.
| void play | ( | ) |
Start playback.
If the recording is finished or already playing, this is a no-op.
| void set_playback_speed | ( | double | factor | ) |
Change the playback speed.
factor > 0 | void step | ( | const boost::posix_time::time_duration & | td | ) |
Step the specified amount of time.
If playback isn't paused, this is a no-op.
td is positive. | void step | ( | size_t | n = 1 |
) |
Step n operations.
If playback isn't paused, this is a no-op.
n > 0
1.7.1