#include <MusicManager.h>
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. | |
1.4.7