Audaspace 1.4.0
A high level audio library.
|
This plugin class reads and writes sounds via ffmpeg. More...
#include <FFMPEG.h>
Public Member Functions | |
FFMPEG () | |
Creates a new ffmpeg plugin. | |
virtual std::shared_ptr< IReader > | createReader (std::string filename, int stream=0) |
Creates a reader for a file to be read. | |
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. | |
virtual std::vector< StreamInfo > | queryStreams (std::string filename) |
Queries the streams of a sound file. | |
virtual std::vector< StreamInfo > | queryStreams (std::shared_ptr< Buffer > buffer) |
Queries the streams of a sound file. | |
virtual std::shared_ptr< IWriter > | createWriter (std::string filename, DeviceSpecs specs, Container format, Codec codec, unsigned int bitrate) |
Creates a new file writer. | |
![]() | |
virtual | ~IFileInput () |
Destroys the file input. | |
virtual std::shared_ptr< IReader > | createReader (std::string filename, int stream=0)=0 |
Creates a reader for a file to be read. | |
virtual std::shared_ptr< IReader > | createReader (std::shared_ptr< Buffer > buffer, int stream=0)=0 |
Creates a reader for a file to be read from memory. | |
virtual std::vector< StreamInfo > | queryStreams (std::string filename)=0 |
Queries the streams of a sound file. | |
virtual std::vector< StreamInfo > | queryStreams (std::shared_ptr< Buffer > buffer)=0 |
Queries the streams of a sound file. | |
virtual std::shared_ptr< IWriter > | createWriter (std::string filename, DeviceSpecs specs, Container format, Codec codec, unsigned int bitrate)=0 |
Creates a new file writer. | |
Static Public Member Functions | |
static void | registerPlugin () |
Registers this plugin. | |
This plugin class reads and writes sounds via ffmpeg.
|
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 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 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.
buffer | The in-memory file buffer. |
Exception | Thrown if the file specified cannot be read. |
Implements IFileInput.
|
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.