37 ADSR_STATE_INVALID = 0,
38 ADSR_STATE_ATTACK = 1,
40 ADSR_STATE_SUSTAIN = 3,
41 ADSR_STATE_RELEASE = 4
78 void AUD_LOCAL nextState(ADSRState state);
89 ADSRReader(std::shared_ptr<IReader> reader,
float attack,
float decay,
float sustain,
float release);
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition Audaspace.h:119
float sample_t
Sample type.(float samples)
Definition Audaspace.h:126
#define AUD_LOCAL
Used for hiding symbols from export in the shared library.
Definition Audaspace.h:80
#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
This class is an ADSR filters.
Definition ADSRReader.h:33
virtual void read(int &length, bool &eos, sample_t *buffer)
Request to read the next length samples out of the source.
void release()
Triggers the release.
ADSRReader(std::shared_ptr< IReader > reader, float attack, float decay, float sustain, float release)
Creates a new ADSR reader.
This reader is a base class for all effect readers that take one other reader as input.
Definition EffectReader.h:36