aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-05-17 20:39:28 -0700
committerChris Robinson <[email protected]>2019-05-17 20:39:28 -0700
commit515a201e30272826bd2bab58eecf42a5fa263230 (patch)
tree03ea283dbd7c9ce332282e85b19d4f1f54efd927 /Alc/alc.cpp
parent5ac19673db211d1bee7687335af96cee4e6b40d8 (diff)
Restructure some voice fields
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r--Alc/alc.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp
index 6bd755bf..8a340b18 100644
--- a/Alc/alc.cpp
+++ b/Alc/alc.cpp
@@ -2644,17 +2644,12 @@ void AllocateVoices(ALCcontext *context, ALsizei num_voices, ALsizei old_sends)
voice->mStep = old_voice->mStep;
voice->mResampler = old_voice->mResampler;
- voice->mFlags = old_voice->mFlags;
-
- std::copy(std::begin(old_voice->mPrevSamples), std::end(old_voice->mPrevSamples),
- std::begin(voice->mPrevSamples));
-
voice->mResampleState = old_voice->mResampleState;
- voice->mAmbiScales = old_voice->mAmbiScales;
- voice->mAmbiSplitter = old_voice->mAmbiSplitter;
- std::for_each(voice->mAmbiSplitter.begin(),voice->mAmbiSplitter.end(),
- std::bind(std::mem_fn(&BandSplitter::clear), _1));
+ voice->mFlags = old_voice->mFlags;
+
+ std::copy(old_voice->mResampleData.begin(), old_voice->mResampleData.end(),
+ voice->mResampleData.end());
voice->mDirect = old_voice->mDirect;
std::copy_n(old_voice->mSend.begin(), s_count, voice->mSend.begin());