31#include "soundprovider_type.h"
40 template<
class SoundProv
iderClass>
50 std::unique_ptr<SoundProvider>
load(
51 const std::string &filename,
55 return std::make_unique<SoundProviderClass>(filename, fs, stream);
59 std::unique_ptr<SoundProvider>
load(
63 return std::make_unique<SoundProviderClass>(file, stream);
Virtual File System (VFS).
Definition file_system.h:47
I/O Device interface.
Definition iodevice.h:50
std::unique_ptr< SoundProvider > load(IODevice &file, bool stream) override
Called to load static with this sound provider type.
Definition soundprovider_type_register.h:59
SoundProviderType_Register(const std::string &type)
Registers sound provider type in the SoundProviderFactory.
Definition soundprovider_type_register.h:45
std::unique_ptr< SoundProvider > load(const std::string &filename, bool stream, const FileSystem &fs) override
Called to load static with this sound provider type.
Definition soundprovider_type_register.h:50
SoundProviderType(const std::string &type)
Registers a sound provider type in the SoundProviderFactory.