FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
The chorus effect essentially replays the input audio accompanied by another slightly delayed version of the signal, creating a ‘doubling’ effect. More...
#include <soundeffect.h>
Public Member Functions | |
Chorus () | |
Constructor. More... | |
void | setWaveformTriangle (bool value) |
Sets the waveform to triangle or sinus. More... | |
bool | isWaveformTriangle () const |
Return if wavefrom is triangle. More... | |
void | setPhase (int32_t value) |
Sets the phase, difference between the left and right LFO’s. More... | |
int32_t | getPhase () const |
Return the phase. More... | |
void | setRate (float value) |
Sets the rate, the modulation rate of the LFO that controls the delay time of the delayed signals. More... | |
float | getRate () const |
Return the rate. More... | |
void | setDepth (float value) |
Sets the depth, the amount by which the delay time is modulated by the LFO. More... | |
float | getDepth () const |
Return the depth. More... | |
void | setFeedback (float value) |
Sets the feedback, the amount of processed signal that is fed back to the input of the chorus effect. More... | |
float | getFeedback () const |
Return feedback. More... | |
void | setDelay (float value) |
Sets the delay, the average amount of time the sample is delayed before it is played back. More... | |
float | getDelay () const |
Return delay. 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 | |
bool | m_waveformTriangle |
int32_t | m_phase |
float | m_rate |
float | m_depth |
float | m_feedback |
float | m_delay |
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 chorus effect essentially replays the input audio accompanied by another slightly delayed version of the signal, creating a ‘doubling’ effect.
Definition at line 256 of file soundeffect.h.
FIFE::Chorus::Chorus | ( | ) |
Constructor.
Definition at line 253 of file soundeffect.cpp.
References FIFE::alEffecti, FIFE::SoundEffect::m_effect, FIFE::SoundEffect::m_effectType, and FIFE::SE_EFFECT_CHORUS.
float FIFE::Chorus::getDelay | ( | ) | const |
float FIFE::Chorus::getDepth | ( | ) | const |
float FIFE::Chorus::getFeedback | ( | ) | const |
int32_t FIFE::Chorus::getPhase | ( | ) | const |
float FIFE::Chorus::getRate | ( | ) | const |
bool FIFE::Chorus::isWaveformTriangle | ( | ) | const |
Return if wavefrom is triangle.
Definition at line 273 of file soundeffect.cpp.
References m_waveformTriangle.
void FIFE::Chorus::setDelay | ( | float | value | ) |
Sets the delay, the average amount of time the sample is delayed before it is played back.
value | Range 0.0 to 0.016, default 0.016. |
Definition at line 321 of file soundeffect.cpp.
References FIFE::alEffectf, m_delay, and FIFE::SoundEffect::m_effect.
void FIFE::Chorus::setDepth | ( | float | value | ) |
Sets the depth, the amount by which the delay time is modulated by the LFO.
value | Range 0.0 to 1.0, default 0.1. |
Definition at line 299 of file soundeffect.cpp.
References FIFE::alEffectf, m_depth, and FIFE::SoundEffect::m_effect.
void FIFE::Chorus::setFeedback | ( | float | value | ) |
Sets the feedback, the amount of processed signal that is fed back to the input of the chorus effect.
value | Range -1.0 to 1.0, default 0.25. |
Definition at line 310 of file soundeffect.cpp.
References FIFE::alEffectf, FIFE::SoundEffect::m_effect, and m_feedback.
void FIFE::Chorus::setPhase | ( | int32_t | value | ) |
Sets the phase, difference between the left and right LFO’s.
value | Range -180 to 180, default 90. |
Definition at line 277 of file soundeffect.cpp.
References FIFE::alEffecti, FIFE::SoundEffect::m_effect, and m_phase.
void FIFE::Chorus::setRate | ( | float | value | ) |
Sets the rate, the modulation rate of the LFO that controls the delay time of the delayed signals.
value | Range 0.0 to 10.0, default 1.1. |
Definition at line 288 of file soundeffect.cpp.
References FIFE::alEffectf, FIFE::SoundEffect::m_effect, and m_rate.
void FIFE::Chorus::setWaveformTriangle | ( | bool | value | ) |
Sets the waveform to triangle or sinus.
Controls delay time of delayed signals.
value | True for triangle, false for sinus. Default is true. |
Definition at line 264 of file soundeffect.cpp.
References FIFE::alEffecti, FIFE::SoundEffect::m_effect, and m_waveformTriangle.
|
private |
Definition at line 325 of file soundeffect.h.
Referenced by getDelay(), and setDelay().
|
private |
Definition at line 323 of file soundeffect.h.
Referenced by getDepth(), and setDepth().
|
private |
Definition at line 324 of file soundeffect.h.
Referenced by getFeedback(), and setFeedback().
|
private |
Definition at line 321 of file soundeffect.h.
Referenced by getPhase(), and setPhase().
|
private |
Definition at line 322 of file soundeffect.h.
|
private |
Definition at line 320 of file soundeffect.h.
Referenced by isWaveformTriangle(), and setWaveformTriangle().