TheoraTexture::MagicalTrevor Struct Reference
Detailed Description
Magical Trevor is responsible for tracking elapsed time based on the currently playing buffer.
- Note:
- He's ever so clear.
Basically it takes periodic updates of the currently playing buffer and figures the time between that buffer and the last tracked buffer, and tells you how much time passed between those two events. (time == duration of audio)
Constructor & Destructor Documentation
TheoraTexture::MagicalTrevor::MagicalTrevor |
( |
|
) |
|
TheoraTexture::MagicalTrevor::~MagicalTrevor |
( |
|
) |
|
Member Function Documentation
const F64 TheoraTexture::MagicalTrevor::advanceTime |
( |
const ALuint |
buffId |
) |
|
Given current buffer, infer elapsed time since last call.
void TheoraTexture::MagicalTrevor::postBuffer |
( |
const ALuint |
buffId, |
|
|
const F64 |
duration | |
|
) |
| | |
Note a buffer, and how much time it contains.
const U32 TheoraTexture::MagicalTrevor::getListSize |
( |
|
) |
const |
How many items in our list? Used for debugging.
void TheoraTexture::MagicalTrevor::reset |
( |
|
) |
|
Clear everything out in preparation for the next playback.
Field Documentation
|