loadSound
AssetManager::loadSound
Loads a sound from a file and returns a pointer to the loaded sound.
Declaration
Sound* loadSound(const std::string& filePath);
Parameters
Name |
Type |
Description |
---|---|---|
filePath |
const std::string& |
Path to the file to load. |
Returns
A pointer to a Sound containing information about the loaded sound.
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)), the returned pointer is nullptr.