Main Page | Modules | Namespace List | Class Hierarchy | Compound List | File List | Compound Members | File Members

Sound Class Reference
[Audio]

#include <sound.h>

Inheritance diagram for Sound:

SoundOgg SoundSynth SoundWave List of all members.

Public Member Functions

virtual short nextSample (double fragPos)
virtual void startFill ()
virtual StereoSample nextStereoSample (double fragPos)
virtual void play ()
virtual void playVelocity (double v)
virtual void stop ()
int isActive ()
void setFreq (double f)
void setVol (double v)
void setVelocity (double v)
void setPos (v3f p)
int isPlaying ()
 Sound ()

Protected Attributes

int active
int starting
int stereo
v3f pos
int positional
double lpf_alpha
double lpf_beta
double lpf_x1
double lpf_y1
double currentFreq
double targetFreq
double currentVol
double targetVol
double currentVelocity
double targetVelocity
double currentAttLeft
double targetAttLeft
double currentAttRight
double targetAttRight

Friends

class AudioServer
void fillAudio (void *udata, Uint8 *stream, int len)

Constructor & Destructor Documentation

Sound::Sound  ) 
 


Member Function Documentation

int Sound::isActive  )  [inline]
 

int Sound::isPlaying  )  [inline]
 

short Sound::nextSample double  fragPos  )  [virtual]
 

Reimplemented in SoundSynth, SoundWave, and SoundOgg.

StereoSample Sound::nextStereoSample double  fragPos  )  [virtual]
 

Reimplemented in SoundWave, and SoundOgg.

void Sound::play  )  [virtual]
 

Reimplemented in SoundSynth, SoundWave, and SoundOgg.

void Sound::playVelocity double  v  )  [virtual]
 

Reimplemented in SoundSynth, and SoundWave.

void Sound::setFreq double  f  ) 
 

void Sound::setPos v3f  p  ) 
 

void Sound::setVelocity double  v  ) 
 

void Sound::setVol double  v  ) 
 

void Sound::startFill  )  [virtual]
 

Reimplemented in SoundWave.

void Sound::stop  )  [virtual]
 

Reimplemented in SoundSynth, SoundWave, and SoundOgg.


Friends And Related Function Documentation

friend class AudioServer [friend]
 

void fillAudio void *  udata,
Uint8 *  stream,
int  len
[friend]
 


Member Data Documentation

int Sound::active [protected]
 

double Sound::currentAttLeft [protected]
 

double Sound::currentAttRight [protected]
 

double Sound::currentFreq [protected]
 

double Sound::currentVelocity [protected]
 

double Sound::currentVol [protected]
 

double Sound::lpf_alpha [protected]
 

double Sound::lpf_beta [protected]
 

double Sound::lpf_x1 [protected]
 

double Sound::lpf_y1 [protected]
 

v3f Sound::pos [protected]
 

int Sound::positional [protected]
 

int Sound::starting [protected]
 

int Sound::stereo [protected]
 

double Sound::targetAttLeft [protected]
 

double Sound::targetAttRight [protected]
 

double Sound::targetFreq [protected]
 

double Sound::targetVelocity [protected]
 

double Sound::targetVol [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon Jul 21 10:44:48 2003 for Rover by doxygen 1.3.2