Description
Functions
| Util::Reference < Buffer > | loadAudio(const Util::FileName & url) | 
| Util::Reference < Buffer > | loadAudio(const std::string & extension, const std::string & data) | 
| bool | registerAudioLoader(const std::string & extension, std::function< AbstractAudioStreamer *()> loaderCreator) | 
Documentation
function
 Sound::Serialization::loadAudio
| public | 
| Util::Reference < Buffer > loadAudio( | const Util::FileName & | url ) | 
Load a single audio file from the given address. The type of the audio file is determined by the file extension.
Parameters
- file
- Address to the file containing the audio data.
Returns
A single audio file.
Defined in Sound/Serialization/Serialization.h:34
function
 Sound::Serialization::loadAudio
| public | 
| Util::Reference < Buffer > loadAudio( | const std::string & | extension, | 
| const std::string & | data | |
| ) | 
Create a audio buffer from the given data. The type of the bitmap has to be given as parameter.
Parameters
- extension
- File extension specifying the type of the bitmap.
- data
- Bitmap data.
Returns
A single bitmap.
Defined in Sound/Serialization/Serialization.h:44
function
 Sound::Serialization::registerAudioLoader
| public | 
| bool registerAudioLoader( | const std::string & | extension, | 
| std::function< AbstractAudioStreamer *()> | loaderCreator | |
| ) | 
Register a new streamer for the given file extension that supports loading of bitmaps.
Parameters
- extension
- File extension specifying the type of the bitmap.
- loaderCreator
- A function that creates a new streamer when called.
Parameters
:
Defined in Sound/Serialization/Serialization.h:54