Audaspace
1.3.0
A high level audio library.
|
Go to the documentation of this file.
19 #ifdef LIBSNDFILE_PLUGIN
20 #define AUD_BUILD_PLUGIN
SndFileWriter(std::string filename, DeviceSpecs specs, Container format, Codec codec, unsigned int bitrate)
Creates a new writer.
This class represents a sound sink where audio data can be written to.
Definition: IWriter.h:61
Specification of a sound device.
Definition: Specification.h:120
Defines the IWriter interface as well as Container and Codec types.
virtual int getPosition() const
Returns how many samples have been written so far.
virtual void write(unsigned int length, sample_t *buffer)
Request to write the next length samples out into the sink.
This class writes a sound file via libsndfile.
Definition: SndFileWriter.h:40
virtual ~SndFileWriter()
Destroys the writer and closes the file.
#define AUD_PLUGIN_API
Used for exporting symbols in the shared library.
Definition: Audaspace.h:94
Container
Container formats for writers.
Definition: IWriter.h:31
Codec
Audio codecs for writers.
Definition: IWriter.h:44
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition: Audaspace.h:119
virtual DeviceSpecs getSpecs() const
Returns the specification of the audio data being written into the sink.
float sample_t
Sample type.(float samples)
Definition: Audaspace.h:126
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition: Audaspace.h:116