torque Torque Game Engine Documentation
TGE Version 1.5.2

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)


Public Member Functions

 MagicalTrevor ()
 ~MagicalTrevor ()
const F64 advanceTime (const ALuint buffId)
 Given current buffer, infer elapsed time since last call.
void postBuffer (const ALuint buffId, const F64 duration)
 Note a buffer, and how much time it contains.
const U32 getListSize () const
 How many items in our list? Used for debugging.
void reset ()
 Clear everything out in preparation for the next playback.

Data Fields

FreeListChunker< BufInfmBuffPool
BufInfmBufListHead
ALint mLastBufferID
voidmMutex

Data Structures

struct  BufInf


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




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen