#include <H3DSoundFileNode.h>
Inheritance diagram for H3D::H3DSoundFileNode:

Public Types | |
| typedef H3DSoundFileNode *(* | CreateNodeFunc )() |
| typedef bool(* | SupportsFileFunc )(const string &url) |
| Function ptr type for. | |
Public Member Functions | |
| virtual unsigned int | load (const string &_url)=0 |
| Load a sound file from the given url that will be used to generate PCM data. | |
Static Public Member Functions | |
| template<class N> | |
| static H3DSoundFileNode * | newSoundFileNode () |
| static H3DSoundFileNode * | getSupportedFileReader (const string &url) |
| Given an url to a file, it returns an instance of a H3DSoundFileNode class that can handle that file type. | |
| static void | registerFileReader (const string &name, CreateNodeFunc create, SupportsFileFunc supports) |
| Register a file reader that can then be returned by getSupportedFileReader(). | |
| static void | registerFileReader (const FileReaderRegistration &fr) |
| Register a file reader that can then be returned by getSupportedFileReader(). | |
Static Protected Attributes | |
| static list< FileReaderRegistration > * | registered_file_readers |
| static bool | initialized = false |
Classes | |
| struct | FileReaderRegistration |
| Class used to register a class to the registered file readers. More... | |
It also upholds a database over all subclasses that registers itself. The getSupportedFileReader function can then be used to get an instance of a H3DSoundFileNode that supports a certain file type.
|
|
Given an url to a file, it returns an instance of a H3DSoundFileNode class that can handle that file type. If no such class is registered NULL is returns. |
|
||||||||||||||||
|
Register a file reader that can then be returned by getSupportedFileReader().
|
1.4.5