|
Audaspace 1.8.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 (const std::string &filename, int stream=0) | |
| Creates a new sound. | |
| File (const data_t *buffer, int size, int stream=0) | |
| Creates a new sound. | |
| std::vector< StreamInfo > | queryStreams () |
| Queries the streams of the file. | |
| virtual std::shared_ptr< IReader > | createReader () |
| Creates a reader for playback of the sound source. | |
| Public Member Functions inherited from ISound | |
| 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 | ( | const std::string & | filename, |
| int | stream = 0 ) |
Creates a new sound.
The file is read from the file system using the given path.
| filename | The sound file path. |
| stream | The index of the audio stream within the file if it contains multiple audio streams. |
| File::File | ( | const data_t * | buffer, |
| int | size, | ||
| int | stream = 0 ) |
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. |
| stream | The index of the audio stream within the file if it contains multiple audio streams. |
|
virtual |
| std::vector< StreamInfo > File::queryStreams | ( | ) |
Queries the streams of the file.
| Exception | Thrown if the file specified cannot be read. |