FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
The echo effect generates discrete, delayed instances of the input signal. More...
#include <soundeffect.h>
Public Member Functions | |
Echo () | |
Constructor. More... | |
void | setDelay (float value) |
Sets the delay between the original sound and the first ‘tap’, or echo instance. More... | |
float | getDelay () const |
Return delay. More... | |
void | setLrDelay (float value) |
Sets the delay between the first ‘tap’ and the second ‘tap’. More... | |
float | getLrDelay () const |
Return LR delay. More... | |
void | setDamping (float value) |
Sets damping, the amount of high frequency damping applied to each echo. More... | |
float | getDamping () const |
Return damping. More... | |
void | setFeedback (float value) |
Sets feedback, the amount of feedback the output signal fed back into the input. More... | |
float | getFeedback () const |
Return feedback. More... | |
void | setSpread (float value) |
Sets spread, that defines how hard panned the individual echoes are. More... | |
float | getSpread () const |
Return spread. More... | |
Public Member Functions inherited from FIFE::SoundEffect | |
SoundEffect () | |
Constructor. More... | |
virtual | ~SoundEffect () |
Destructor. More... | |
ALuint | getEffectId () const |
Return the OpenAL effect handle. More... | |
void | setSlotId (ALuint slot) |
Sets the OpenAL auxiliary slot handle. More... | |
ALuint | getSlotId () |
Return the OpenAL auxiliary slot handle. More... | |
SoundEffectType | getEffectType () const |
Return sound effect type. More... | |
void | setEnabled (bool enabled) |
Enables or disables the effect. More... | |
bool | isEnabled () const |
Return true if the effect is enabled, false otherwise. More... | |
void | setFilter (SoundFilter *filter) |
Sets the additional sound filter. More... | |
SoundFilter * | getFilter () |
Return sound filter or NULL. More... | |
Private Attributes | |
float | m_delay |
float | m_lrDelay |
float | m_damping |
float | m_feedback |
float | m_spread |
Additional Inherited Members | |
Protected Attributes inherited from FIFE::SoundEffect | |
ALuint | m_effect |
Effect object id. More... | |
ALuint | m_slot |
Effect slot id;. More... | |
SoundEffectType | m_effectType |
Sound effect type. More... | |
bool | m_enabled |
Effect enabled. More... | |
SoundFilter * | m_filter |
Additional filter effect. More... | |
The echo effect generates discrete, delayed instances of the input signal.
The amount of delay and feedback is controllable.
Definition at line 395 of file soundeffect.h.
FIFE::Echo::Echo | ( | ) |
Constructor.
Definition at line 399 of file soundeffect.cpp.
References FIFE::alEffecti, FIFE::SoundEffect::m_effect, FIFE::SoundEffect::m_effectType, and FIFE::SE_EFFECT_ECHO.
float FIFE::Echo::getDamping | ( | ) | const |
float FIFE::Echo::getDelay | ( | ) | const |
float FIFE::Echo::getFeedback | ( | ) | const |
float FIFE::Echo::getLrDelay | ( | ) | const |
float FIFE::Echo::getSpread | ( | ) | const |
void FIFE::Echo::setDamping | ( | float | value | ) |
Sets damping, the amount of high frequency damping applied to each echo.
value | Range 0.0 to 0.99, default 0.5. |
Definition at line 431 of file soundeffect.cpp.
References FIFE::alEffectf, m_damping, and FIFE::SoundEffect::m_effect.
void FIFE::Echo::setDelay | ( | float | value | ) |
Sets the delay between the original sound and the first ‘tap’, or echo instance.
value | Range 0.0 to 0.207, default 0.1. |
Definition at line 409 of file soundeffect.cpp.
References FIFE::alEffectf, m_delay, and FIFE::SoundEffect::m_effect.
void FIFE::Echo::setFeedback | ( | float | value | ) |
Sets feedback, the amount of feedback the output signal fed back into the input.
value | Range 0.0 to 1.0, default 0.5. |
Definition at line 442 of file soundeffect.cpp.
References FIFE::alEffectf, FIFE::SoundEffect::m_effect, and m_feedback.
void FIFE::Echo::setLrDelay | ( | float | value | ) |
Sets the delay between the first ‘tap’ and the second ‘tap’.
value | Range 0.0 to 0.404, default 0.1. |
Definition at line 420 of file soundeffect.cpp.
References FIFE::alEffectf, FIFE::SoundEffect::m_effect, and m_lrDelay.
void FIFE::Echo::setSpread | ( | float | value | ) |
Sets spread, that defines how hard panned the individual echoes are.
value | Range -1.0 to 1.0, default -1.0. |
Definition at line 453 of file soundeffect.cpp.
References FIFE::alEffectf, FIFE::SoundEffect::m_effect, and m_spread.
|
private |
Definition at line 449 of file soundeffect.h.
Referenced by getDamping(), and setDamping().
|
private |
Definition at line 447 of file soundeffect.h.
Referenced by getDelay(), and setDelay().
|
private |
Definition at line 450 of file soundeffect.h.
Referenced by getFeedback(), and setFeedback().
|
private |
Definition at line 448 of file soundeffect.h.
Referenced by getLrDelay(), and setLrDelay().
|
private |
Definition at line 451 of file soundeffect.h.
Referenced by getSpread(), and setSpread().