diff options
author | Chris Robinson <[email protected]> | 2007-12-18 17:21:13 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2007-12-18 17:21:13 -0800 |
commit | 6aabc837a967b15993c5a9f3da63164f451811c3 (patch) | |
tree | 944123e1b7373ca5a90ad06ce8fa943f18c58f55 /Alc/ALu.c | |
parent | 233e6f1765824df7b5d574ea7c9ac590f501ed43 (diff) |
Fix initial WetMix setup
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -227,10 +227,6 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource, HeadRelative = ALSource->bHeadRelative; OuterGainHF = ALSource->OuterGainHF; - //Set working variables - DryMix = (ALfloat)(1.0f); - WetMix = (ALfloat)(0.0f); - //Only apply 3D calculations for mono buffers if(isMono != AL_FALSE) { @@ -293,6 +289,7 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource, // Source Gain + Attenuation DryMix = SourceVolume * flAttenuation; + WetMix = SourceVolume * 0.0f; // Clamp to Min/Max Gain DryMix = __min(DryMix,MaxVolume); |