#include <sdlfilemusic.h>
Inheritance diagram for SdlFileMusic:
Public Member Functions | |
DECLSPEC | SdlFileMusic (const char *fn, const char *name=0) |
DECLSPEC bool | load (const char *fn) |
This is a simple class for playing music resources, loaded from a wave- or ogg-vorbis-file.
SdlFileMusic::SdlFileMusic | ( | const char * | fn, | |
const char * | name = 0 | |||
) |
Constructor. Registers itself in the SdlManager and loads the resource data from fn. If loading failed, the fail-state will be set.
fn | the filename of the wave- or ogg-file to load | |
name | the name of the resource |
bool SdlFileMusic::load | ( | const char * | fn | ) |
Loads wave or ogg data from fn. It is halted, if currently playing and the data, inited previously is freed. If loading failed, the fail-state will be set.
fn | the filename of the wave- or ogg-file to load |