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

Music Class Reference

#include <Music.h>

Inherits SoundMedia.

Inheritance diagram for Music:

Inheritance graph
[legend]
List of all members.

Public Member Functions

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

Protected Attributes

FMUSIC_MODULEmod
bool playing

Detailed Description

Music.h

Author: Petter Alstermark, petter@alstermark.com

Definition at line 12 of file Music.h.


Constructor & Destructor Documentation

Music::Music  ) 
 

Music.cpp

Author: Petter Alstermark, petter@alstermark.com

Definition at line 9 of file Music.cpp.

References mod.

Music::~Music  )  [virtual]
 

Definition at line 13 of file Music.cpp.


Member Function Documentation

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

Reimplemented from SoundMedia.

Definition at line 17 of file Music.cpp.

References FMOD_ErrorString(), FMUSIC_LoadSong(), FSOUND_GetError(), LOG_ERROR, LOG_SUCCESS, mod, and playing.

Referenced by MainApp::load(), Demo::load(), and Play::loadSounds().

Here is the call graph for this function:

void Music::play int  volume = 192  ) 
 

Definition at line 36 of file Music.cpp.

References FMUSIC_PlaySong(), FMUSIC_SetMasterVolume(), mod, and playing.

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

Here is the call graph for this function:

void Music::stop  )  [virtual]
 

Reimplemented from SoundMedia.

Definition at line 46 of file Music.cpp.

References FMUSIC_StopSong(), mod, and playing.

Referenced by Join::networkLoop(), Play::unload(), MainApp::unload(), and Demo::unload().

Here is the call graph for this function:

bool Music::unload  )  [virtual]
 

Reimplemented from SoundMedia.

Definition at line 29 of file Music.cpp.

References FMUSIC_FreeSong(), LOG_SUCCESS, and mod.

Referenced by Play::unload(), MainApp::unload(), and Demo::unload().

Here is the call graph for this function:


Member Data Documentation

FMUSIC_MODULE* Music::mod [protected]
 

Definition at line 23 of file Music.h.

Referenced by load(), Music(), play(), stop(), and unload().

bool Music::playing [protected]
 

Definition at line 24 of file Music.h.

Referenced by load(), play(), and stop().


Generated on Sun Jun 5 15:50:22 2005 for Defacto by  doxygen 1.4.3