Audaspace
1.3.0
A high level audio library.
|
The File sound tries to read a sound file via all available file inputs that have been registered in the FileManager class. More...
#include <File.h>
Public Member Functions | |
File (std::string filename) | |
Creates a new sound. More... | |
File (const data_t *buffer, int size) | |
Creates a new sound. More... | |
virtual std::shared_ptr< IReader > | createReader () |
Creates a reader for playback of the sound source. More... | |
![]() | |
virtual | ~ISound () |
Destroys the sound. | |
The File sound tries to read a sound file via all available file inputs that have been registered in the FileManager class.
File::File | ( | std::string | filename | ) |
Creates a new sound.
The file is read from the file system using the given path.
filename | The sound file path. |
File::File | ( | const data_t * | buffer, |
int | size | ||
) |
Creates a new sound.
The file is read from memory using the supplied buffer.
buffer | The buffer to read from. |
size | The size of the buffer. |
|
virtual |