SdlFileMusic Class Reference
[SDL based classes]

Simple class for songs, loaded from a WAV/OGG file. More...

#include <sdlfilemusic.h>

Inheritance diagram for SdlFileMusic:

Inheritance graph
[legend]
Collaboration diagram for SdlFileMusic:

Collaboration graph
[legend]
List of all members.

Public Member Functions

DECLSPEC SdlFileMusic (const char *fn, const char *name=0)
DECLSPEC bool load (const char *fn)

Detailed Description

Simple class for songs, loaded from a WAV/OGG file.

This is a simple class for playing music resources, loaded from a wave- or ogg-vorbis-file.

See also:
SdlMusicList, SdlFileMusicList


Constructor & Destructor Documentation

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.

Parameters:
fn the filename of the wave- or ogg-file to load
name the name of the resource
See also:
SdlAudio::SdlAudio( const char *name )


Member Function Documentation

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.

Parameters:
fn the filename of the wave- or ogg-file to load


The documentation for this class was generated from the following files:
Generated on Wed May 9 17:36:32 2007 for netrinjo by  doxygen 1.5.1