#include <eSound.h>
Public Member Functions | |
void | Reset (int randomize=0) |
eAudioPos () | |
Public Attributes | |
Uint32 | pos |
Uint32 | fraction |
Definition at line 44 of file eSound.h.
eAudioPos::eAudioPos | ( | ) | [inline] |
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 }
Uint32 eAudioPos::pos |
Uint32 eAudioPos::fraction |