void C4SoundModifierReverb::Update() { #if (AUDIO_TK == AUDIO_TK_OPENAL) && defined(HAVE_ALEXT) // use the cave preset as default for the reverb modifier Application.MusicSystem.SelectContext(); alEffectf(effect, AL_REVERB_DENSITY, GetFloatProp(P_Reverb_Density, 1000, 1.0f)); alEffectf(effect, AL_REVERB_DIFFUSION, GetFloatProp(P_Reverb_Diffusion, 1000, 1.0f)); alEffectf(effect, AL_REVERB_GAIN, GetFloatProp(P_Reverb_Gain, 1000, 0.316f)); alEffectf(effect, AL_REVERB_GAINHF, GetFloatProp(P_Reverb_GainHF, 1000, 1.0f)); alEffectf(effect, AL_REVERB_DECAY_TIME, GetFloatProp(P_Reverb_Decay_Time, 1000, 2.91f)); alEffectf(effect, AL_REVERB_DECAY_HFRATIO, GetFloatProp(P_Reverb_Decay_HFRatio, 1000, 1.3f)); alEffectf(effect, AL_REVERB_REFLECTIONS_GAIN, GetFloatProp(P_Reverb_Reflections_Gain, 1000, 0.5f)); alEffectf(effect, AL_REVERB_REFLECTIONS_DELAY, GetFloatProp(P_Reverb_Reflections_Delay, 1000, 0.015f)); alEffectf(effect, AL_REVERB_LATE_REVERB_GAIN, GetFloatProp(P_Reverb_Late_Reverb_Gain, 1000, 0.706f)); alEffectf(effect, AL_REVERB_LATE_REVERB_DELAY, GetFloatProp(P_Reverb_Late_Reverb_Delay, 1000, 0.022f)); alEffectf(effect, AL_REVERB_AIR_ABSORPTION_GAINHF, GetFloatProp(P_Reverb_Air_Absorption_GainHF, 1000, 0.994f)); alEffectf(effect, AL_REVERB_ROOM_ROLLOFF_FACTOR, GetFloatProp(P_Reverb_Room_Rolloff_Factor, 1000, 0.0f)); alEffecti(effect, AL_REVERB_DECAY_HFLIMIT, GetBoolProp(P_Reverb_Decay_HFLimit, true) ? 1 : 0); #endif C4SoundModifier::Update(); }
STDMETHODIMP CUUEngine::get_StrictFilenames(BOOL *pVal) { *pVal = GetBoolProp(UUOPT_STRICTFN); return S_OK; }
STDMETHODIMP CUUEngine::get_Verbose(BOOL *pVal) { *pVal = GetBoolProp(UUOPT_VERBOSE); return S_OK; }
STDMETHODIMP CUUEngine::get_UseText(BOOL *pVal) { *pVal = GetBoolProp(UUOPT_USETEXT); return S_OK; }
STDMETHODIMP CUUEngine::get_StrictMIME(BOOL *pVal) { *pVal = GetBoolProp(UUOPT_MOREMIME); return S_OK; }
STDMETHODIMP CUUEngine::get_RemoveAfter(BOOL *pVal) { *pVal = GetBoolProp(UUOPT_REMOVE); return S_OK; }
STDMETHODIMP CUUEngine::get_Overwrite(BOOL *pVal) { *pVal = GetBoolProp(UUOPT_OVERWRITE); return S_OK; }
STDMETHODIMP CUUEngine::get_IgnoreReply(BOOL *pVal) { *pVal = GetBoolProp(UUOPT_IGNREPLY); return S_OK; }
STDMETHODIMP CUUEngine::get_FastMode(BOOL *pVal) { *pVal = GetBoolProp(UUOPT_FAST); return S_OK; }
STDMETHODIMP CUUEngine::get_Dumb(BOOL *pVal) { *pVal = GetBoolProp(UUOPT_DUMBNESS); return S_OK; }
STDMETHODIMP CUUEngine::get_Desperate(short *pVal) { *pVal = GetBoolProp(UUOPT_DESPERATE); return S_OK; }
STDMETHODIMP CUUEngine::get_BracketPolicy(BOOL *pVal) { *pVal = GetBoolProp(UUOPT_BRACKPOL); return S_OK; }