Audaspace
1.3.0
A high level audio library.
|
Go to the documentation of this file.
57 ADSR& operator=(
const ADSR&) =
delete;
68 ADSR(std::shared_ptr<ISound> sound,
float attack,
float decay,
float sustain,
float release);
ADSR(std::shared_ptr< ISound > sound, float attack, float decay, float sustain, float release)
Creates a new ADSR object.
The ADSR effect implements the Attack-Delay-Sustain-Release behaviour of a sound.
Definition: ADSR.h:33
void setSustain(float sustain)
Sets the sustain level.
void setAttack(float attack)
Sets the attack time.
float getDecay() const
Returns the decay time.
float getSustain() const
Returns the sustain level.
void setRelease(float release)
Sets the release time.
virtual std::shared_ptr< IReader > createReader()
Creates a reader for playback of the sound source.
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition: Audaspace.h:119
This sound is a base class for all effect factories that take one other sound as input.
Definition: Effect.h:34
#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
void setDecay(float decay)
Sets the decay time.
float getAttack() const
Returns the attack time.
float getRelease() const
Returns the release time.