aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
Diffstat (limited to 'alc')
-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;