|
Audaspace
1.3.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) |
| Creates a reader for a file to be read. More... | |
| virtual std::shared_ptr< IReader > | createReader (std::shared_ptr< Buffer > buffer) |
| Creates a reader for a file to be read from memory. 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... | |
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. |
| Exception | Thrown if the file specified cannot be read. |
Implements IFileInput.
Creates a reader for a file to be read from memory.
| buffer | The in-memory file buffer. |
| 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.
1.8.14