Use the AuxSendAuto property of the effect slot

This commit is contained in:
Chris Robinson
2007-12-18 19:43:54 -08:00
parent e5609279da
commit a433ae0ff4
2 changed files with 3 additions and 2 deletions
+3 -1
View File
@@ -302,7 +302,9 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource,
// Source Gain + Attenuation
DryMix = SourceVolume * flAttenuation;
WetMix = SourceVolume * (ALSource->WetGainAuto ? RoomAttenuation : 1.0f);
WetMix = SourceVolume * ((ALSource->WetGainAuto &&
ALSource->Send[0].Slot.AuxSendAuto) ?
RoomAttenuation : 1.0f);
// Clamp to Min/Max Gain
DryMix = __min(DryMix,MaxVolume);
-1
View File
@@ -185,7 +185,6 @@ AL_API ALvoid AL_APIENTRY alAuxiliaryEffectSloti(ALuint effectslot, ALenum param
break;
case AL_EFFECTSLOT_AUXILIARY_SEND_AUTO:
/* FIXME: Unused */
if(iValue == AL_TRUE || iValue == AL_FALSE)
ALEffectSlot->AuxSendAuto = iValue;
else