Don't process direct channel sources with attenuation

This commit is contained in:
Chris Robinson 2019-12-17 22:36:26 -08:00
parent a8de1570e9
commit 5e35f73cad

View File

@ -1579,11 +1579,11 @@ void CalcSourceParams(ALvoice *voice, ALCcontext *context, bool force)
AtomicReplaceHead(context->mFreeVoiceProps, props);
}
if((voice->mProps.mSpatializeMode == SpatializeAuto && voice->mFmtChannels == FmtMono) ||
voice->mProps.mSpatializeMode == SpatializeOn)
CalcAttnSourceParams(voice, &voice->mProps, context);
else
if(voice->mProps.DirectChannels || voice->mProps.mSpatializeMode == SpatializeOff
|| (voice->mProps.mSpatializeMode == SpatializeAuto && voice->mFmtChannels != FmtMono))
CalcNonAttnSourceParams(voice, &voice->mProps, context);
else
CalcAttnSourceParams(voice, &voice->mProps, context);
}