SdlFileSound Class Reference
[SDL based classes]

Simple class for sounds, loaded from a wave-file. More...

#include <sdlfilesound.h>

Inheritance diagram for SdlFileSound:

Inheritance graph
[legend]
Collaboration diagram for SdlFileSound:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Detailed Description

Simple class for sounds, loaded from a wave-file.

This is a simple class for playing sound resources, loaded from a wave-file.


Constructor & Destructor Documentation

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.

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


Member Function Documentation

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.

Parameters:
fn the filename of the wave-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