56 ADSR(
const ADSR&) =
delete;
57 ADSR& operator=(
const ADSR&) =
delete;
68 ADSR(std::shared_ptr<ISound> sound,
float attack,
float decay,
float sustain,
float release);
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition Audaspace.h:119
#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 setSustain(float sustain)
Sets the sustain level.
void setDecay(float decay)
Sets the decay time.
float getDecay() const
Returns the decay time.
float getSustain() const
Returns the sustain level.
float getAttack() const
Returns the attack time.
ADSR(std::shared_ptr< ISound > sound, float attack, float decay, float sustain, float release)
Creates a new ADSR object.
virtual std::shared_ptr< IReader > createReader()
Creates a reader for playback of the sound source.
void setAttack(float attack)
Sets the attack time.
float getRelease() const
Returns the release time.
void setRelease(float release)
Sets the release time.