Sound Provider Factor class. More...
#include <soundprovider_factory.h>
Static Public Member Functions | |
static std::unique_ptr< SoundProvider > | load (const std::string &filename, bool streamed, const FileSystem &fs, const std::string &type=std::string()) |
Loads an sample file from 'filename', using the provider identified by 'type'. | |
static std::unique_ptr< SoundProvider > | load (const std::string &fullname, bool streamed, const std::string &type=std::string()) |
Loads an sample file from 'filename', using the provider identified by 'type'. | |
static std::unique_ptr< SoundProvider > | load (IODevice &file, bool streamed, const std::string &type) |
Loads an sample file from 'file', using the provider identified by 'type'. | |
Sound Provider Factor class.
|
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 |
Loads an sample file from 'filename', using the provider identified by 'type'.
|
static |
Loads an sample file from 'file', using the provider identified by 'type'.