This abstract class is able to mix audiosignals with same channel count and sample rate and convert it to a specific output format.
More...
#include <Mixer.h>
This abstract class is able to mix audiosignals with same channel count and sample rate and convert it to a specific output format.
| void Mixer::clear |
( |
int |
length | ) |
|
Clears the mixing buffer.
- Parameters
-
| length | The length of the buffer in samples. |
Returns the target specification for superposing.
- Returns
- The target specification.
| void Mixer::mix |
( |
sample_t * |
buffer, |
|
|
int |
start, |
|
|
int |
length, |
|
|
float |
volume |
|
) |
| |
Mixes a buffer.
- Parameters
-
| buffer | The buffer to superpose. |
| start | The start sample of the buffer. |
| length | The length of the buffer in samples. |
| volume | The mixing volume. Must be a value between 0.0 and 1.0. |
| void Mixer::read |
( |
data_t * |
buffer, |
|
|
float |
volume |
|
) |
| |
Writes the mixing buffer into an output buffer.
- Parameters
-
| buffer | The target buffer for superposing. |
| volume | The mixing volume. Must be a value between 0.0 and 1.0. |
| void Mixer::setSpecs |
( |
Specs |
specs | ) |
|
Sets the target specification for superposing.
- Parameters
-
| specs | The target specification. |
The documentation for this class was generated from the following file: