22 #ifndef FIFE_SOUNDEFFECT_H 23 #define FIFE_SOUNDEFFECT_H 116 void setDensity(
float value);
120 float getDensity()
const;
125 void setDiffusion(
float value);
129 float getDiffusion()
const;
134 void setGain(
float value);
138 float getGain()
const;
143 void setGainHf(
float value);
147 float getGainHf()
const;
152 void setDecayTime(
float value);
156 float getDecayTime()
const;
162 void setDecayHfRatio(
float value);
166 float getDecayHfRatio()
const;
172 void setReflectionsGain(
float value);
176 float getReflectionsGain()
const;
182 void setReflectionsDelay(
float value);
186 float getReflectionsDelay()
const;
191 void setLateReverbGain(
float value);
195 float getLateReverbGain()
const;
201 void setLateReverbDelay(
float value);
205 float getLateReverbDelay()
const;
211 void setAirAbsorptionGainHf(
float value);
215 float getAirAbsorptionGainHf()
const;
221 void setRoomRolloffFactor(
float value);
225 float getRoomRolloffFactor()
const;
231 void setDecayHfLimit(
bool value);
235 bool isDecayHfLimit()
const;
265 void setWaveformTriangle(
bool value);
269 bool isWaveformTriangle()
const;
274 void setPhase(int32_t value);
278 int32_t getPhase()
const;
284 void setRate(
float value);
288 float getRate()
const;
293 void setDepth(
float value);
297 float getDepth()
const;
303 void setFeedback(
float value);
307 float getFeedback()
const;
313 void setDelay(
float value);
317 float getDelay()
const;
340 void setEdge(
float value);
344 float getEdge()
const;
349 void setGain(
float value);
353 float getGain()
const;
359 void setLowpassCutoff(
float value);
363 float getLowpassCutoff()
const;
369 void setEqCenter(
float value);
373 float getEqCenter()
const;
378 void setEqBandwidth(
float value);
382 float getEqBandwidth()
const;
404 void setDelay(
float value);
408 float getDelay()
const;
413 void setLrDelay(
float value);
417 float getLrDelay()
const;
422 void setDamping(
float value);
426 float getDamping()
const;
431 void setFeedback(
float value);
435 float getFeedback()
const;
440 void setSpread(
float value);
444 float getSpread()
const;
466 void setWaveformTriangle(
bool value);
470 bool isWaveformTriangle()
const;
476 void setPhase(int32_t value);
480 int32_t getPhase()
const;
486 void setRate(
float value);
490 float getRate()
const;
495 void setDepth(
float value);
499 float getDepth()
const;
505 void setFeedback(
float value);
509 float getFeedback()
const;
515 void setDelay(
float value);
519 float getDelay()
const;
543 void setFrequency(
float value);
547 float getFrequency()
const;
553 void setLeftDirection(
uint8_t value);
557 uint8_t getLeftDirection()
const;
563 void setRightDirection(
uint8_t value);
567 uint8_t getRightDirection()
const;
610 void setPhonemeCoarseA(int16_t value);
614 int16_t getPhonemeCoarseA()
const;
620 void setPhonemeCoarseB(int16_t value);
624 int16_t getPhonemeCoarseB()
const;
630 void setWaveform(
uint8_t value);
640 void setRate(
float value);
644 float getRate()
const;
668 void setCoarseTune(int16_t value);
672 int16_t getCoarseTune()
const;
678 void setFineTune(int16_t value);
682 int16_t getFineTune()
const;
701 void setFrequency(
float value);
705 float getFrequency()
const;
711 void setHighpassCutoff(
float value);
715 float getHighpassCutoff()
const;
720 void setWaveform(
uint8_t value);
742 void setAttackTime(
float value);
746 float getAttackTime()
const;
752 void setReleaseTime(
float value);
756 float getReleaseTime()
const;
762 void setResonance(
float value);
766 float getResonance()
const;
772 void setPeakGain(
float value);
776 float getPeakGain()
const;
797 void setCompressor(
bool value);
801 bool isCompressor()
const;
819 void setLowGain(
float value);
823 float getLowGain()
const;
828 void setLowCutoff(
float value);
832 float getLowCutoff()
const;
837 void setMid1Gain(
float value);
841 float getMid1Gain()
const;
846 void setMid1Center(
float value);
850 float getMid1Center()
const;
855 void setMid1Width(
float value);
859 float getMid1Width()
const;
864 void setMid2Gain(
float value);
868 float getMid2Gain()
const;
873 void setMid2Center(
float value);
877 float getMid2Center()
const;
882 void setMid2Width(
float value);
886 float getMid2Width()
const;
891 void setHighGain(
float value);
895 float getHighGain()
const;
900 void setHighCutoff(
float value);
904 float getHighCutoff()
const;
932 void setDensity(
float value);
936 float getDensity()
const;
941 void setDiffusion(
float value);
945 float getDiffusion()
const;
950 void setGain(
float value);
954 float getGain()
const;
959 void setGainHf(
float value);
963 float getGainHf()
const;
968 void setGainLf(
float value);
972 float getGainLf()
const;
977 void setDecayTime(
float value);
981 float getDecayTime()
const;
987 void setDecayHfRatio(
float value);
991 float getDecayHfRatio()
const;
997 void setDecayLfRatio(
float value);
1001 float getDecayLfRatio()
const;
1007 void setReflectionsGain(
float value);
1011 float getReflectionsGain()
const;
1017 void setReflectionsDelay(
float value);
1021 float getReflectionsDelay()
const;
1038 void setLateReverbGain(
float value);
1042 float getLateReverbGain()
const;
1048 void setLateReverbDelay(
float value);
1052 float getLateReverbDelay()
const;
1069 void setEchoTime(
float value);
1073 float getEchoTime()
const;
1079 void setEchoDepth(
float value);
1083 float getEchoDepth()
const;
1088 void setModulationTime(
float value);
1092 float getModulationTime()
const;
1097 void setModulationDepth(
float value);
1101 float getModulationDepth()
const;
1107 void setAirAbsorptionGainHf(
float value);
1111 float getAirAbsorptionGainHf()
const;
1118 void setHfReference(
float value);
1122 float getHfReference()
const;
1130 void setLfReference(
float value);
1134 float getLfReference()
const;
1140 void setRoomRolloffFactor(
float value);
1144 float getRoomRolloffFactor()
const;
1150 void setDecayHfLimit(
bool value);
1154 bool isDecayHfLimit()
const;
1159 void loadPreset(
const EFXEAXREVERBPROPERTIES& prop);
The distortion effect simulates turning up (overdriving) the gain stage on a guitar amplifier or addi...
void setEnabled(bool enabled)
Enables or disables the effect.
The Automatic Gain Control effect performs the same task as a studio compressor – evening out the aud...
ALuint m_slot
Effect slot id;.
float m_airAbsorptionGainHf
SoundEffectType m_effectType
Sound effect type.
SoundFilter * getFilter()
Return sound filter or NULL.
AudioSpaceCoordinate m_reflectionsPan
The vocal morpher consists of a pair of 4-band formant filters, used to impose vocal tract effects up...
Base class for Efx sound effects.
The class defines filters.
float m_roomRolloffFactor
The chorus effect essentially replays the input audio accompanied by another slightly delayed version...
ALuint getEffectId() const
Return the OpenAL effect handle.
float m_airAbsorptionGainHf
ALuint getSlotId()
Return the OpenAL auxiliary slot handle.
SoundEffectType getEffectType() const
Return sound effect type.
bool m_enabled
Effect enabled.
The Equalizer providing tonal control over four different adjustable frequency ranges.
The frequency shifter is a single-sideband modulator, which translates all the component frequencies ...
The Auto-wah effect emulates the sound of a wah-wah pedal used with an electric guitar, or a mute on a brass instrument.
void setFilter(SoundFilter *filter)
Sets the additional sound filter.
SoundFilter * m_filter
Additional filter effect.
SoundEffect()
Constructor.
ALuint m_effect
Effect object id.
float m_roomRolloffFactor
The flanger effect creates a “tearing” or “whooshing” sound.
SoundEffectType
Sound effect type.
The environmental reverberation effect.
AudioSpaceCoordinate m_lateReverbPan
The ring modulator multiplies an input signal by a carrier signal in the time domain, resulting in tremolo or inharmonic effects.
The EAX Reverb is similar to Reverb but supports more options.
The echo effect generates discrete, delayed instances of the input signal.
bool isEnabled() const
Return true if the effect is enabled, false otherwise.
void setSlotId(ALuint slot)
Sets the OpenAL auxiliary slot handle.
The pitch shifter applies time-invariant pitch shifting to the input signal, over a one octave range ...
virtual ~SoundEffect()
Destructor.