eAudioPos Class Reference

#include <eSound.h>

List of all members.

Public Member Functions

void Reset (int randomize=0)
 eAudioPos ()

Public Attributes

Uint32 pos
Uint32 fraction


Detailed Description

Definition at line 44 of file eSound.h.


Constructor & Destructor Documentation

eAudioPos::eAudioPos (  )  [inline]

Definition at line 51 of file eSound.h.

References Reset().

00051 {Reset();}

Here is the call graph for this function:


Member Function Documentation

void eAudioPos::Reset ( int  randomize = 0  ) 

Definition at line 721 of file eSound.cpp.

References fraction, tRandomizer::Get(), tRandomizer::GetInstance(), pos, and SPEED_FRACTION.

Referenced by eAudioPos(), and eSoundPlayer::Reset().

00721                                   {
00722 #ifndef DEDICATED
00723     if (randomize){
00724         tRandomizer & randomizer = tRandomizer::GetInstance();
00725         fraction = randomizer.Get( SPEED_FRACTION );
00726         // fraction=int(SPEED_FRACTION*(rand()/float(RAND_MAX)));
00727         pos=randomizer.Get( randomize );
00728         // pos=int(randomize*(rand()/float(RAND_MAX)));
00729     }
00730     else
00731         fraction=pos=0;
00732 #endif
00733 }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Uint32 eAudioPos::pos

Definition at line 46 of file eSound.h.

Referenced by eWavData::Mix(), and Reset().

Uint32 eAudioPos::fraction

Definition at line 47 of file eSound.h.

Referenced by eWavData::Mix(), and Reset().


The documentation for this class was generated from the following files:
Generated on Sat Mar 15 23:21:15 2008 for Armagetron Advanced by  doxygen 1.5.4