Audaspace
1.3.0
A high level audio library.
|
Go to the documentation of this file.
97 void mix(
sample_t* buffer,
int start,
int length,
float volume);
107 void mix(
sample_t* buffer,
int start,
int length,
float volume_to,
float volume_from);
void(* convert_f)(data_t *target, data_t *source, int length)
The function template for functions converting from one sample format to another, having the same par...
Definition: ConverterFunctions.h:35
Specification of a sound source.
Definition: Specification.h:110
void mix(sample_t *buffer, int start, int length, float volume)
Mixes a buffer.
convert_f m_convert
Converter function.
Definition: Mixer.h:65
Defines several conversion functions between different sample formats.
void read(data_t *buffer, float volume)
Writes the mixing buffer into an output buffer.
This abstract class is able to mix audiosignals with same channel count and sample rate and convert i...
Definition: Mixer.h:40
Specification of a sound device.
Definition: Specification.h:120
void clear(int length)
Clears the mixing buffer.
DeviceSpecs m_specs
The output specification.
Definition: Mixer.h:50
This class represents a sound source as stream or as buffer which can be read for example by another ...
Definition: IReader.h:35
Buffer m_buffer
The mixing buffer.
Definition: Mixer.h:60
DeviceSpecs getSpecs() const
Returns the target specification for superposing.
void setSpecs(Specs specs)
Sets the target specification for superposing.
Defines all important macros and basic data structures for stream format descriptions.
Mixer(DeviceSpecs specs)
Creates the mixer.
This class is a simple buffer in RAM which is 32 Byte aligned and provides resize functionality.
Definition: Buffer.h:34
unsigned char data_t
Sample data type (format samples)
Definition: Audaspace.h:129
virtual ~Mixer()
Destroys the mixer.
Definition: Mixer.h:76
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition: Audaspace.h:119
void mix(sample_t *buffer, int start, int length, float volume_to, float volume_from)
Mixes a buffer with linear volume interpolation.
int m_length
The length of the mixing buffer.
Definition: Mixer.h:55
float sample_t
Sample type.(float samples)
Definition: Audaspace.h:126
#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