Sound Provider Factor class. More...
#include <soundprovider_factory.h>
Static Public Member Functions | |
Operations | |
static CL_SoundProvider * | load (const CL_String &filename, bool streamed, const CL_VirtualDirectory &directory, const CL_String &type=CL_String()) |
Loads an sample file from 'filename', using the provider identified by 'type'. | |
static CL_SoundProvider * | load (const CL_String &fullname, bool streamed, const CL_String &type=CL_String()) |
Loads an sample file from 'filename', using the provider identified by 'type'. | |
static CL_SoundProvider * | load (CL_IODevice &file, bool streamed, const CL_String &type) |
Loads an sample file from 'file', using the provider identified by 'type'. | |
Static Public Attributes | |
Attributes | |
static std::map< CL_String, CL_SoundProviderType * > | types |
Map of the class factories for each sound provider type. |
Sound Provider Factor class.
static CL_SoundProvider* CL_SoundProviderFactory::load | ( | const CL_String & | filename, | |
bool | streamed, | |||
const CL_VirtualDirectory & | directory, | |||
const CL_String & | type = CL_String() | |||
) | [static] |
Loads an sample file from 'filename', using the provider identified by 'type'.
If the type is an empty string, it uses the extension of the filename to determine what type it is.
The input provider will be used as a the source for filename, if specified.
static CL_SoundProvider* CL_SoundProviderFactory::load | ( | CL_IODevice & | file, | |
bool | streamed, | |||
const CL_String & | type | |||
) | [static] |
Loads an sample file from 'file', using the provider identified by 'type'.
static CL_SoundProvider* CL_SoundProviderFactory::load | ( | const CL_String & | fullname, | |
bool | streamed, | |||
const CL_String & | type = CL_String() | |||
) | [static] |
Loads an sample file from 'filename', using the provider identified by 'type'.
std::map<CL_String, CL_SoundProviderType *> CL_SoundProviderFactory::types [static] |
Map of the class factories for each sound provider type.