FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
Base class for Efx sound effects. More...
#include <soundeffect.h>
Public Member Functions | |
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... | |
Protected Attributes | |
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... | |
Base class for Efx sound effects.
Definition at line 46 of file soundeffect.h.
FIFE::SoundEffect::SoundEffect | ( | ) |
Constructor.
Definition at line 45 of file soundeffect.cpp.
References FIFE::alGenEffects, and m_effect.
|
virtual |
Destructor.
Definition at line 55 of file soundeffect.cpp.
References FIFE::alDeleteEffects, and m_effect.
ALuint FIFE::SoundEffect::getEffectId | ( | ) | const |
Return the OpenAL effect handle.
Definition at line 59 of file soundeffect.cpp.
References m_effect.
Referenced by FIFE::SoundEffectManager::enableSoundEffect().
SoundEffectType FIFE::SoundEffect::getEffectType | ( | ) | const |
Return sound effect type.
Definition at line 71 of file soundeffect.cpp.
References m_effectType.
SoundFilter * FIFE::SoundEffect::getFilter | ( | ) |
Return sound filter or NULL.
Definition at line 87 of file soundeffect.cpp.
References m_filter.
Referenced by FIFE::SoundEffectManager::activateEffect(), FIFE::SoundEffectManager::addSoundFilterToSoundEffect(), FIFE::SoundEffectManager::deleteSoundEffect(), and FIFE::SoundEffectManager::enableSoundEffect().
ALuint FIFE::SoundEffect::getSlotId | ( | ) |
Return the OpenAL auxiliary slot handle.
Definition at line 67 of file soundeffect.cpp.
References m_slot.
Referenced by FIFE::SoundEffectManager::activateEffect(), and FIFE::SoundEffectManager::disableSoundEffect().
bool FIFE::SoundEffect::isEnabled | ( | ) | const |
Return true if the effect is enabled, false otherwise.
Definition at line 79 of file soundeffect.cpp.
References m_enabled.
Referenced by FIFE::SoundEffectManager::activateEffect(), FIFE::SoundEffectManager::addSoundFilterToSoundEffect(), FIFE::SoundEffectManager::deactivateEffect(), FIFE::SoundEffectManager::disableSoundEffect(), FIFE::SoundEffectManager::enableSoundEffect(), and FIFE::SoundEffectManager::removeSoundFilterFromSoundEffect().
void FIFE::SoundEffect::setEnabled | ( | bool | enabled | ) |
Enables or disables the effect.
enabled | A bool to indicate if the effect is enabled or disabled. |
Definition at line 75 of file soundeffect.cpp.
References m_enabled.
Referenced by FIFE::SoundEffectManager::disableSoundEffect(), and FIFE::SoundEffectManager::enableSoundEffect().
void FIFE::SoundEffect::setFilter | ( | SoundFilter * | filter | ) |
Sets the additional sound filter.
filter | The SoundFilter or NULL. |
Definition at line 83 of file soundeffect.cpp.
References m_filter.
Referenced by FIFE::SoundEffectManager::addSoundFilterToSoundEffect(), and FIFE::SoundEffectManager::removeSoundFilterFromSoundEffect().
void FIFE::SoundEffect::setSlotId | ( | ALuint | slot | ) |
Sets the OpenAL auxiliary slot handle.
Definition at line 63 of file soundeffect.cpp.
References m_slot.
Referenced by FIFE::SoundEffectManager::disableSoundEffect(), and FIFE::SoundEffectManager::enableSoundEffect().
|
protected |
Effect object id.
Definition at line 93 of file soundeffect.h.
Referenced by FIFE::Autowah::Autowah(), FIFE::Chorus::Chorus(), FIFE::Compressor::Compressor(), FIFE::Distortion::Distortion(), FIFE::EaxReverb::EaxReverb(), FIFE::Echo::Echo(), FIFE::Equalizer::Equalizer(), FIFE::Flanger::Flanger(), FIFE::FrequencyShifter::FrequencyShifter(), getEffectId(), FIFE::PitchShifter::PitchShifter(), FIFE::Reverb::Reverb(), FIFE::RingModulator::RingModulator(), FIFE::Reverb::setAirAbsorptionGainHf(), FIFE::EaxReverb::setAirAbsorptionGainHf(), FIFE::Autowah::setAttackTime(), FIFE::PitchShifter::setCoarseTune(), FIFE::Compressor::setCompressor(), FIFE::Echo::setDamping(), FIFE::Reverb::setDecayHfLimit(), FIFE::EaxReverb::setDecayHfLimit(), FIFE::Reverb::setDecayHfRatio(), FIFE::EaxReverb::setDecayHfRatio(), FIFE::EaxReverb::setDecayLfRatio(), FIFE::Reverb::setDecayTime(), FIFE::EaxReverb::setDecayTime(), FIFE::Chorus::setDelay(), FIFE::Echo::setDelay(), FIFE::Flanger::setDelay(), FIFE::Reverb::setDensity(), FIFE::EaxReverb::setDensity(), FIFE::Chorus::setDepth(), FIFE::Flanger::setDepth(), FIFE::Reverb::setDiffusion(), FIFE::EaxReverb::setDiffusion(), FIFE::EaxReverb::setEchoDepth(), FIFE::EaxReverb::setEchoTime(), FIFE::Distortion::setEdge(), FIFE::Distortion::setEqBandwidth(), FIFE::Distortion::setEqCenter(), FIFE::Chorus::setFeedback(), FIFE::Echo::setFeedback(), FIFE::Flanger::setFeedback(), FIFE::PitchShifter::setFineTune(), FIFE::FrequencyShifter::setFrequency(), FIFE::RingModulator::setFrequency(), FIFE::Reverb::setGain(), FIFE::Distortion::setGain(), FIFE::EaxReverb::setGain(), FIFE::Reverb::setGainHf(), FIFE::EaxReverb::setGainHf(), FIFE::EaxReverb::setGainLf(), FIFE::EaxReverb::setHfReference(), FIFE::Equalizer::setHighCutoff(), FIFE::Equalizer::setHighGain(), FIFE::RingModulator::setHighpassCutoff(), FIFE::Reverb::setLateReverbDelay(), FIFE::EaxReverb::setLateReverbDelay(), FIFE::Reverb::setLateReverbGain(), FIFE::EaxReverb::setLateReverbGain(), FIFE::EaxReverb::setLateReverbPan(), FIFE::FrequencyShifter::setLeftDirection(), FIFE::EaxReverb::setLfReference(), FIFE::Equalizer::setLowCutoff(), FIFE::Equalizer::setLowGain(), FIFE::Distortion::setLowpassCutoff(), FIFE::Echo::setLrDelay(), FIFE::Equalizer::setMid1Center(), FIFE::Equalizer::setMid1Gain(), FIFE::Equalizer::setMid1Width(), FIFE::Equalizer::setMid2Center(), FIFE::Equalizer::setMid2Gain(), FIFE::Equalizer::setMid2Width(), FIFE::EaxReverb::setModulationDepth(), FIFE::EaxReverb::setModulationTime(), FIFE::Autowah::setPeakGain(), FIFE::Chorus::setPhase(), FIFE::Flanger::setPhase(), FIFE::VocalMorpher::setPhonemeA(), FIFE::VocalMorpher::setPhonemeB(), FIFE::VocalMorpher::setPhonemeCoarseA(), FIFE::VocalMorpher::setPhonemeCoarseB(), FIFE::Chorus::setRate(), FIFE::Flanger::setRate(), FIFE::VocalMorpher::setRate(), FIFE::Reverb::setReflectionsDelay(), FIFE::EaxReverb::setReflectionsDelay(), FIFE::Reverb::setReflectionsGain(), FIFE::EaxReverb::setReflectionsGain(), FIFE::EaxReverb::setReflectionsPan(), FIFE::Autowah::setReleaseTime(), FIFE::Autowah::setResonance(), FIFE::FrequencyShifter::setRightDirection(), FIFE::Reverb::setRoomRolloffFactor(), FIFE::EaxReverb::setRoomRolloffFactor(), FIFE::Echo::setSpread(), FIFE::VocalMorpher::setWaveform(), FIFE::RingModulator::setWaveform(), FIFE::Chorus::setWaveformTriangle(), FIFE::Flanger::setWaveformTriangle(), SoundEffect(), FIFE::VocalMorpher::VocalMorpher(), and ~SoundEffect().
|
protected |
Sound effect type.
Definition at line 97 of file soundeffect.h.
Referenced by FIFE::Autowah::Autowah(), FIFE::Chorus::Chorus(), FIFE::Compressor::Compressor(), FIFE::Distortion::Distortion(), FIFE::EaxReverb::EaxReverb(), FIFE::Echo::Echo(), FIFE::Equalizer::Equalizer(), FIFE::Flanger::Flanger(), FIFE::FrequencyShifter::FrequencyShifter(), getEffectType(), FIFE::PitchShifter::PitchShifter(), FIFE::Reverb::Reverb(), FIFE::RingModulator::RingModulator(), and FIFE::VocalMorpher::VocalMorpher().
|
protected |
Effect enabled.
Definition at line 99 of file soundeffect.h.
Referenced by isEnabled(), and setEnabled().
|
protected |
Additional filter effect.
Definition at line 101 of file soundeffect.h.
Referenced by getFilter(), and setFilter().
|
protected |
Effect slot id;.
Definition at line 95 of file soundeffect.h.
Referenced by getSlotId(), and setSlotId().