|
Audaspace
1.4.0
A high level audio library.
|
This plugin class reads and writes sounds via libsndfile. More...
#include <SndFile.h>

Public Member Functions | |
| SndFile () | |
| Creates a new libsndfile plugin. | |
| virtual std::shared_ptr< IReader > | createReader (std::string filename, int stream=0) |
| Creates a reader for a file to be read. More... | |
| virtual std::shared_ptr< IReader > | createReader (std::shared_ptr< Buffer > buffer, int stream=0) |
| Creates a reader for a file to be read from memory. More... | |
| virtual std::vector< StreamInfo > | queryStreams (std::string filename) |
| Queries the streams of a sound file. More... | |
| virtual std::vector< StreamInfo > | queryStreams (std::shared_ptr< Buffer > buffer) |
| Queries the streams of a sound file. More... | |
| virtual std::shared_ptr< IWriter > | createWriter (std::string filename, DeviceSpecs specs, Container format, Codec codec, unsigned int bitrate) |
| Creates a new file writer. More... | |
Public Member Functions inherited from IFileInput | |
| virtual | ~IFileInput () |
| Destroys the file input. | |
Static Public Member Functions | |
| static void | registerPlugin () |
| Registers this plugin. | |
This plugin class reads and writes sounds via libsndfile.
|
virtual |
Creates a reader for a file to be read.
| filename | Path to the file to be read. |
| stream | The index of the audio stream within the file if it contains multiple audio streams. |
| Exception | Thrown if the file specified cannot be read. |
Implements IFileInput.
|
virtual |
Creates a reader for a file to be read from memory.
| buffer | The in-memory file buffer. |
| stream | The index of the audio stream within the file if it contains multiple audio streams. |
| Exception | Thrown if the file specified cannot be read. |
Implements IFileInput.
|
virtual |
Creates a new file writer.
| filename | The path to the file to be written. |
| specs | The file's audio specification. |
| format | The file's container format. |
| codec | The codec used for encoding the audio data. |
| bitrate | The bitrate for encoding. |
| Exception | Thrown if the file specified cannot be written. |
Implements IFileOutput.
|
virtual |
Queries the streams of a sound file.
| filename | Path to the file to be read. |
| Exception | Thrown if the file specified cannot be read. |
Implements IFileInput.
|
virtual |
Queries the streams of a sound file.
| buffer | The in-memory file buffer. |
| Exception | Thrown if the file specified cannot be read. |
Implements IFileInput.
1.8.14