19#ifdef LIBSNDFILE_PLUGIN
20#define AUD_BUILD_PLUGIN
55 virtual std::shared_ptr<IReader>
createReader(
const std::string &filename,
int stream = 0);
56 virtual std::shared_ptr<IReader>
createReader(std::shared_ptr<Buffer> buffer,
int stream = 0);
57 virtual std::vector<StreamInfo>
queryStreams(
const std::string &filename);
58 virtual 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_PLUGIN_API
Used for exporting symbols in the shared library.
Definition Audaspace.h:94
The IFileOutput interface.
Container
Container formats for writers.
Definition IWriter.h:31
Codec
Audio codecs for writers.
Definition IWriter.h:44
The IFileOutput interface represents a file output plugin that can write files.
Definition IFileOutput.h:38
This plugin class reads and writes sounds via libsndfile.
Definition SndFile.h:38
virtual std::shared_ptr< IWriter > createWriter(const std::string &filename, DeviceSpecs specs, Container format, Codec codec, unsigned int bitrate)
Creates a new file writer.
virtual std::vector< StreamInfo > queryStreams(const std::string &filename)
Queries the streams of a sound file.
static void registerPlugin()
Registers this plugin.
virtual std::vector< StreamInfo > queryStreams(std::shared_ptr< Buffer > buffer)
Queries the streams of a sound file.
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.
SndFile()
Creates a new libsndfile plugin.
virtual std::shared_ptr< IReader > createReader(const std::string &filename, int stream=0)
Creates a reader for a file to be read.
Specification of a sound device.
Definition Specification.h:129