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);
93 virtual void read(
int& length,
bool& eos,
sample_t* buffer);
#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 reader is a base class for all effect readers that take one other reader as input.
Definition: EffectReader.h:35
float sample_t
Sample type.(float samples)
Definition: Audaspace.h:126
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition: Audaspace.h:119
This class is an ADSR filters.
Definition: ADSRReader.h:32
#define AUD_LOCAL
Used for hiding symbols from export in the shared library.
Definition: Audaspace.h:80
virtual void read(int &length, bool &eos, sample_t *buffer)
Request to read the next length samples out of the source.