|
Audaspace 1.10.0
A high level audio library.
|
The FileManager manages all file input and output plugins. More...
#include <FileManager.h>
Static Public Member Functions | |
| static void | registerInput (std::shared_ptr< IFileInput > input) |
| Registers a file input used to create an IReader to read from a file. | |
| static void | registerOutput (std::shared_ptr< IFileOutput > output) |
| Registers a file output used to create an IWriter to write to a file. | |
| static std::shared_ptr< IReader > | createReader (const std::string &filename, int stream=0) |
| Creates a file reader for the given filename if a registed IFileInput is able to read it. | |
| static std::shared_ptr< IReader > | createReader (std::shared_ptr< Buffer > buffer, int stream=0) |
| Creates a file reader for the given buffer if a registed IFileInput is able to read it. | |
| static std::vector< StreamInfo > | queryStreams (const std::string &filename) |
| Queries the streams of a sound file. | |
| static std::vector< StreamInfo > | queryStreams (std::shared_ptr< Buffer > buffer) |
| Queries the streams of a sound file. | |
| static std::shared_ptr< IWriter > | createWriter (const std::string &filename, DeviceSpecs specs, Container format, Codec codec, unsigned int bitrate) |
| Creates a file writer that writes a sound to the given file path. | |
The FileManager manages all file input and output plugins.
|
static |
Creates a file reader for the given filename if a registed IFileInput is able to read it.
| filename | The path to the file. |
| stream | The index of the audio stream within the file if it contains multiple audio streams. |
| Exception | If no file input can read the file an exception is thrown. |
|
static |
Creates a file reader for the given buffer if a registed IFileInput is able to read it.
| buffer | The buffer to read the file from. |
| stream | The index of the audio stream within the file if it contains multiple audio streams. |
| Exception | If no file input can read the file an exception is thrown. |
|
static |
Creates a file writer that writes a sound to the given file path.
Existing files will be overwritten.
| filename | The file path to write to. |
| specs | The output specification. |
| format | The container format for the file. |
| codec | The codec used inside the container. |
| bitrate | The bitrate to write with. |
| Exception | If no file output can write the file with the given specification an exception is thrown. |
|
static |
Queries the streams of a sound file.
| filename | Path to the file to be read. |
| Exception | Thrown if the file specified cannot be read. |
|
static |
Queries the streams of a sound file.
| buffer | The in-memory file buffer. |
| Exception | Thrown if the file specified cannot be read. |
|
static |
Registers a file input used to create an IReader to read from a file.
| input | The IFileInput to register. |
|
static |
Registers a file output used to create an IWriter to write to a file.
| output | The IFileOutput to register. |