Audaspace 1.5.0
A high level audio library.
|
This sound creates an accumulator reader. More...
#include <Accumulator.h>
Public Member Functions | |
Accumulator (std::shared_ptr< ISound > sound, bool additive=false) | |
Creates a new accumulator sound. | |
virtual std::shared_ptr< IReader > | createReader () |
Creates a reader for playback of the sound source. | |
Public Member Functions inherited from Effect | |
Effect (std::shared_ptr< ISound > sound) | |
Creates a new sound. | |
virtual | ~Effect () |
Destroys the sound. | |
std::shared_ptr< ISound > | getSound () const |
Returns the saved sound. | |
Public Member Functions inherited from ISound | |
virtual | ~ISound () |
Destroys the sound. | |
Static Public Member Functions | |
static sample_t AUD_LOCAL | accumulatorFilterAdditive (CallbackIIRFilterReader *reader, void *useless) |
The accumulatorFilterAdditive function implements the doFilterIIR callback for the additive accumulator filter. | |
static sample_t AUD_LOCAL | accumulatorFilter (CallbackIIRFilterReader *reader, void *useless) |
The accumulatorFilter function implements the doFilterIIR callback for the non-additive accumulator filter. | |
Additional Inherited Members | |
Protected Member Functions inherited from Effect | |
std::shared_ptr< IReader > | getReader () const |
Returns the reader created out of the sound. | |
Protected Attributes inherited from Effect | |
std::shared_ptr< ISound > | m_sound |
If there is no reader it is created out of this sound. | |
This sound creates an accumulator reader.
The accumulator adds the difference at the input to the last output in case it's positive. In additive mode it additionaly adds the difference always. So in case the difference is positive, it's added twice.
Accumulator::Accumulator | ( | std::shared_ptr< ISound > | sound, |
bool | additive = false ) |
Creates a new accumulator sound.
sound | The input sound. |
additive | Whether the accumulator is additive. |
|
static |
The accumulatorFilter function implements the doFilterIIR callback for the non-additive accumulator filter.
reader | The CallbackIIRFilterReader that executes the callback. |
useless | A user defined pointer that is not needed for this filter. |
|
static |
The accumulatorFilterAdditive function implements the doFilterIIR callback for the additive accumulator filter.
reader | The CallbackIIRFilterReader that executes the callback. |
useless | A user defined pointer that is not needed for this filter. |
|
virtual |