47 static std::list<std::shared_ptr<IFileInput>>& inputs();
48 static std::list<std::shared_ptr<IFileOutput>>& outputs();
75 static std::shared_ptr<IReader>
createReader(
const std::string &filename,
int stream = 0);
84 static std::shared_ptr<IReader>
createReader(std::shared_ptr<Buffer> buffer,
int stream = 0);
92 static std::vector<StreamInfo>
queryStreams(
const std::string &filename);
100 static std::vector<StreamInfo>
queryStreams(std::shared_ptr<Buffer> buffer);
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition Audaspace.h:119
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition Audaspace.h:116
#define AUD_API
Used for exporting symbols in the shared library.
Definition Audaspace.h:93
The FileInfo data structures.
Defines the IWriter interface as well as Container and Codec types.
Container
Container formats for writers.
Definition IWriter.h:31
Codec
Audio codecs for writers.
Definition IWriter.h:44
Defines all important macros and basic data structures for stream format descriptions.
This class is a simple buffer in RAM which is 32 Byte aligned and provides resize functionality.
Definition Buffer.h:34
The FileManager manages all file input and output plugins.
Definition FileManager.h:45
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::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.
static void registerInput(std::shared_ptr< IFileInput > input)
Registers a file input used to create an IReader to read from a file.
static std::vector< StreamInfo > queryStreams(std::shared_ptr< Buffer > buffer)
Queries the streams of a sound 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::vector< StreamInfo > queryStreams(const std::string &filename)
Queries the streams of a sound file.
The IFileOutput interface represents a file output plugin that can write files.
Definition IFileOutput.h:38
This class represents a sound source as stream or as buffer which can be read for example by another ...
Definition IReader.h:35
Specification of a sound device.
Definition Specification.h:129