loadSound
AssetLoaderModuleInterface::loadSound
Loads a sound from a file.
Declaration
virtual bool loadSound(const std::string& filePath, Sound& sound) = 0;
Parameters
Name |
Type |
Description |
|---|---|---|
filePath |
const std::string& |
Path to the file to load. |
sound |
The sound to put the information in. |
Returns
true if the sound has been successfully loaded, else, if the sound could not be loaded (for example: if the file does not exist, or the Asset Manager or Asset Loader Module does not support this sound file format (including the case where there is no Asset Loader Module)), returns false.