From 9ce2b8f9a72845d4eeba2abaea6b23880a3b4c82 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 28 Oct 2015 02:27:00 -0700 Subject: Always update all reverb properties The EAX-only effect properties will be set to compatible defaults when standard reverb is set, and the EAX-only effects will be skipped during sample processing. --- OpenAL32/alEffect.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'OpenAL32') diff --git a/OpenAL32/alEffect.c b/OpenAL32/alEffect.c index 2f49d7a7..0bfe11b9 100644 --- a/OpenAL32/alEffect.c +++ b/OpenAL32/alEffect.c @@ -402,13 +402,27 @@ static void InitEffectParams(ALeffect *effect, ALenum type) effect->Props.Reverb.Diffusion = AL_REVERB_DEFAULT_DIFFUSION; effect->Props.Reverb.Gain = AL_REVERB_DEFAULT_GAIN; effect->Props.Reverb.GainHF = AL_REVERB_DEFAULT_GAINHF; + effect->Props.Reverb.GainLF = 1.0f; effect->Props.Reverb.DecayTime = AL_REVERB_DEFAULT_DECAY_TIME; effect->Props.Reverb.DecayHFRatio = AL_REVERB_DEFAULT_DECAY_HFRATIO; + effect->Props.Reverb.DecayLFRatio = 1.0f; effect->Props.Reverb.ReflectionsGain = AL_REVERB_DEFAULT_REFLECTIONS_GAIN; effect->Props.Reverb.ReflectionsDelay = AL_REVERB_DEFAULT_REFLECTIONS_DELAY; + effect->Props.Reverb.ReflectionsPan[0] = 0.0f; + effect->Props.Reverb.ReflectionsPan[1] = 0.0f; + effect->Props.Reverb.ReflectionsPan[2] = 0.0f; effect->Props.Reverb.LateReverbGain = AL_REVERB_DEFAULT_LATE_REVERB_GAIN; effect->Props.Reverb.LateReverbDelay = AL_REVERB_DEFAULT_LATE_REVERB_DELAY; + effect->Props.Reverb.LateReverbPan[0] = 0.0f; + effect->Props.Reverb.LateReverbPan[1] = 0.0f; + effect->Props.Reverb.LateReverbPan[2] = 0.0f; + effect->Props.Reverb.EchoTime = 0.25f; + effect->Props.Reverb.EchoDepth = 0.0f; + effect->Props.Reverb.ModulationTime = 0.25f; + effect->Props.Reverb.ModulationDepth = 0.0f; effect->Props.Reverb.AirAbsorptionGainHF = AL_REVERB_DEFAULT_AIR_ABSORPTION_GAINHF; + effect->Props.Reverb.HFReference = 5000.0f; + effect->Props.Reverb.LFReference = 250.0f; effect->Props.Reverb.RoomRolloffFactor = AL_REVERB_DEFAULT_ROOM_ROLLOFF_FACTOR; effect->Props.Reverb.DecayHFLimit = AL_REVERB_DEFAULT_DECAY_HFLIMIT; SET_VTABLE1(ALreverb, effect); -- cgit v1.2.3