Public Member Functions | |
SoundProcessor (AssetGroup *parent) | |
Constructor. | |
~SoundProcessor () | |
Deconstructor. | |
bool | getSound (const std::string &fileName, c8 *&buffer, long &length) |
Gets the sound with the given filename as memory. | |
bool | reloadAsset (const std::string &fileName) |
Reloads the asset with the given filename. | |
void | reloadAssets () |
Reloads all assets. | |
bool | removeAsset (const std::string &fileName) |
Removes the asset with the given filename. | |
void | removeAssets () |
Removes all assets. | |
Static Public Member Functions | |
static AssetProcessor * | createProcessor (AssetGroup *parent) |
Creates a new SoundProcessor. | |
Protected Member Functions | |
bool | loadAsset (const std::string &fileName) |
Loads the asset with the given filename. | |
void | loadAssets () |
Loads all assets. |
Definition at line 33 of file SoundProcessor.h.
SoundProcessor::SoundProcessor | ( | AssetGroup * | parent | ) |
SoundProcessor::~SoundProcessor | ( | ) |
AssetProcessor * SoundProcessor::createProcessor | ( | AssetGroup * | parent | ) | [static] |
Creates a new SoundProcessor.
Definition at line 238 of file SoundProcessor.cpp.
bool SoundProcessor::getSound | ( | const std::string & | fileName, | |
c8 *& | buffer, | |||
long & | length | |||
) |
Gets the sound with the given filename as memory.
fileName | Filename of the sound. | |
buffer | A pointer to the start of the sound buffer. | |
length | Length of the buffer. |
Definition at line 38 of file SoundProcessor.cpp.
bool SoundProcessor::loadAsset | ( | const std::string & | fileName | ) | [protected, virtual] |
Loads the asset with the given filename.
fileName | Filename of the asset. |
Reimplemented from AssetProcessor.
Definition at line 53 of file SoundProcessor.cpp.
void SoundProcessor::loadAssets | ( | ) | [protected, virtual] |
Loads all assets.
Reimplemented from AssetProcessor.
Definition at line 99 of file SoundProcessor.cpp.
bool SoundProcessor::reloadAsset | ( | const std::string & | fileName | ) | [virtual] |
Reloads the asset with the given filename.
fileName | Filename of the asset. |
Reimplemented from AssetProcessor.
Definition at line 157 of file SoundProcessor.cpp.
void SoundProcessor::reloadAssets | ( | ) | [virtual] |
Reloads all assets.
Reimplemented from AssetProcessor.
Definition at line 170 of file SoundProcessor.cpp.
bool SoundProcessor::removeAsset | ( | const std::string & | fileName | ) | [virtual] |
Removes the asset with the given filename.
fileName | Filename of the asset. |
Reimplemented from AssetProcessor.
Definition at line 181 of file SoundProcessor.cpp.
void SoundProcessor::removeAssets | ( | ) | [virtual] |
Removes all assets.
Reimplemented from AssetProcessor.
Definition at line 212 of file SoundProcessor.cpp.