MusicManager Class Reference

A class containing knowledge of how to manage a large soundtrack. More...

#include <MusicManager.h>

List of all members.

Public Member Functions

int playTrack (int num, bool bLoops)
 Plays a given pre-loaded track, with the option to loop eternally.
string getTrackName (bool nl=false)
 Returns the string containing the track name. Provide TRUE to make it split up the artist/album/track information with newlines.
void changeTrack (int dt)
 Switch 'dt' number of tracks from the current one. Wraps around.
void setVolume (int vol)
 Set the current volume of music playback. Maximum volume is SDL_mixer-dependent, but intended to be 128.
void pause ()
 Pauses music playback.
void resume ()
 Resumes music playback after being paused.
void restart ()
 Restarts the current music track from the beginning.
int loadTrack (char *filename)
 Loads a track from disk. Returns < 0 if failed.
 MusicManager (char *dir)
 Basic constructor that loads an entire sequentially-numbered directory of oggs (0.ogg, 1.ogg...).
 ~MusicManager ()
 Destructor.


Detailed Description

A class containing knowledge of how to manage a large soundtrack.


The documentation for this class was generated from the following files:
Generated on Thu Aug 31 20:26:03 2006 for Propane Injector by  doxygen 1.4.7