#include <sdlfilesound.h>
Inheritance diagram for SdlFileSound:
Public Member Functions | |
DECLSPEC | SdlFileSound (const char *fn, const char *name=0) |
DECLSPEC bool | load (const char *fn) |
This is a simple class for playing sound resources, loaded from a wave-file.
SdlFileSound::SdlFileSound | ( | 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-file to load | |
name | the name of the resource |
bool SdlFileSound::load | ( | const char * | fn | ) |
Loads wave-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-file to load |