aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-03 21:23:54 -0700
committerChris Robinson <[email protected]>2019-09-03 21:34:58 -0700
commite1ee1bcde907e0021de38c1823fb5a67d49ebae9 (patch)
treea81155cfa8f6863647251c6158a6bed61684a111
parent3d7ce5a86010240262bdd1763218b3beeda21c5e (diff)
Clean up some formatting
-rw-r--r--alc/mixvoice.cpp12
1 files 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;