In file include/cssndldr/sndload.h:

## class csSoundBufferLoader

## Inheritance:

### Public Methods

virtual const char* get_desc()
  Return a descriptive line about this wave format.
virtual const char* get_name()
  Return the name of the wave type supported by this loader.
static csSoundBuffer* load(FILE* fp)
  Load an wave given a file pointer
static csSoundBuffer* load(ISystem* system, const char* filename)
  Load an wave given the filename
static csSoundBuffer* load(UByte* buf, ULong size)
  Load an wave from a buffer
static bool Register(csSoundBufferLoader* loader)
  Register a loader for a given type of sound files

### Protected Methods

virtual csSoundBuffer* loadsound(UByte* buf, ULong size)
  Load an image from the given buffer
virtual ~csSoundBufferLoader()

## Documentation

`virtual const char* get_name()`
  Return the name of the wave type supported by this loader.

`virtual const char* get_desc()`
  Return a descriptive line about this wave format.

`static csSoundBuffer* load(ISystem* system, const char* filename)`
  Load an wave given the filename. This routine will open the file named filename, try to recognize its type, and return an Wave of the appropriate type. Returns a pointer to the Wave on success, or NULL on failure.

`static csSoundBuffer* load(FILE* fp)`
  Load an wave given a file pointer. This routine will read from the given file, try to recognize its type, and return an Wave of the appropriate type. Returns a pointer to the Wave on success, or NULL on failure.

`static csSoundBuffer* load(UByte* buf, ULong size)`
  Load an wave from a buffer. This routine will read from the buffer buf of length size, try to recognize the type of wave contained within, and return an Wave of the appropriate type. Returns a pointer to the Wave on success, or NULL on failure.

`static bool Register(csSoundBufferLoader* loader)`
  Register a loader for a given type of sound files. Adds 'loader' to the list of image formats to be checked during an ImageLoader::load(...) call.

`virtual ~csSoundBufferLoader()`

`virtual csSoundBuffer* loadsound(UByte* buf, ULong size)`
  Load an image from the given buffer. Attempts to read an image from the buffer 'buf' of length 'size'. If successful, returns a pointer to the resulting ImageFile. Otherwise returns NULL.

Direct child classes:
  WAVLoader
  IFFLoader
  AULoader
  AIFFLoader

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de