From e1ee1bcde907e0021de38c1823fb5a67d49ebae9 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 3 Sep 2019 21:23:54 -0700 Subject: Clean up some formatting --- alc/mixvoice.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/alc/mixvoice.cpp b/alc/mixvoice.cpp index 2d1a4655..2efc5a24 100644 --- a/alc/mixvoice.cpp +++ b/alc/mixvoice.cpp @@ -633,10 +633,11 @@ void ALvoice::mix(State vstate, ALCcontext *Context, const ALuint SamplesToDo) } /* Now filter and mix to the appropriate outputs. */ + ALfloat (&FilterBuf)[BUFFERSIZE] = Device->FilteredData; { DirectParams &parms = chandata.mDryParams; - const ALfloat *samples{DoFilters(&parms.LowPass, &parms.HighPass, - Device->FilteredData, ResampledData, DstBufferSize, mDirect.FilterType)}; + const ALfloat *samples{DoFilters(&parms.LowPass, &parms.HighPass, FilterBuf, + ResampledData, DstBufferSize, mDirect.FilterType)}; if((mFlags&VOICE_HAS_HRTF)) { @@ -786,21 +787,20 @@ void ALvoice::mix(State vstate, ALCcontext *Context, const ALuint SamplesToDo) } } - ALfloat (&FilterBuf)[BUFFERSIZE] = Device->FilteredData; for(ALsizei send{0};send < NumSends;++send) { if(mSend[send].Buffer.empty()) continue; SendParams &parms = chandata.mWetParams[send]; - const ALfloat *samples{DoFilters(&parms.LowPass, &parms.HighPass, - FilterBuf, ResampledData, DstBufferSize, mSend[send].FilterType)}; + const ALfloat *samples{DoFilters(&parms.LowPass, &parms.HighPass, FilterBuf, + ResampledData, DstBufferSize, mSend[send].FilterType)}; const ALfloat *TargetGains{UNLIKELY(vstate==ALvoice::Stopping) ? SilentTarget : parms.Gains.Target}; MixSamples({samples, DstBufferSize}, mSend[send].Buffer, parms.Gains.Current, TargetGains, Counter, OutPos); - }; + } } /* Update positions */ DataPosFrac += increment*DstBufferSize; -- cgit v1.2.3