loadSound

AssetLoaderModuleInterface::loadSound

Loads a sound from a file.

Declaration

virtual Sound loadSound(const std::string& filePath) = 0;

Parameters

Name

Type

Description

filePath

const std::string&

Path to the file to load.

Returns

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 Loader Module does not support this sound file format), the returned Sound contains the structure’s default information.