Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Sound Class Reference

#include <Sound.h>

Inherits SoundMedia.

Inheritance diagram for Sound:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Sound ()
virtual ~Sound ()
bool load (const char *filename)
bool unload ()
void play (int volume=255)
void stop ()

Protected Attributes

FSOUND_SAMPLEsample

Detailed Description

Sound.h

Author: Petter Alstermark, petter@alstermark.com

Definition at line 12 of file Sound.h.


Constructor & Destructor Documentation

Sound::Sound  ) 
 

Sound.cpp

Author: Petter Alstermark, petter@alstermark.com

Definition at line 9 of file Sound.cpp.

References sample.

Sound::~Sound  )  [virtual]
 

Definition at line 13 of file Sound.cpp.


Member Function Documentation

bool Sound::load const char filename  )  [virtual]
 

Reimplemented from SoundMedia.

Definition at line 17 of file Sound.cpp.

References FMOD_ErrorString(), FSOUND_GetError(), FSOUND_LOOP_OFF, FSOUND_NORMAL, FSOUND_Sample_Load(), FSOUND_Sample_SetMode(), FSOUND_UNMANAGED, LOG_ERROR, LOG_SUCCESS, and sample.

Referenced by Menu::load(), Join::load(), and Play::loadSounds().

Here is the call graph for this function:

void Sound::play int  volume = 255  ) 
 

Definition at line 37 of file Sound.cpp.

References FSOUND_FREE, FSOUND_PlaySound(), FSOUND_SetVolume(), and sample.

Referenced by Join::addLevel(), Play::drawProjectiles(), Play::grenadeExplode(), Play::handleKeys(), Play::networkLoop(), Join::networkLoop(), Join::removeLevel(), Menu::updateCreate(), Menu::updateJoin(), and Menu::updateMain().

Here is the call graph for this function:

void Sound::stop  )  [virtual]
 

Reimplemented from SoundMedia.

Definition at line 46 of file Sound.cpp.

bool Sound::unload  )  [virtual]
 

Reimplemented from SoundMedia.

Definition at line 30 of file Sound.cpp.

References FSOUND_Sample_Free(), LOG_SUCCESS, and sample.

Referenced by Play::unload(), Menu::unload(), and Join::unload().

Here is the call graph for this function:


Member Data Documentation

FSOUND_SAMPLE* Sound::sample [protected]
 

Definition at line 23 of file Sound.h.

Referenced by load(), play(), Sound(), and unload().


Generated on Sun Jun 5 15:51:03 2005 for Defacto by  doxygen 1.4.3