diff options
author | Chris Robinson <[email protected]> | 2019-05-17 20:39:28 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-05-17 20:39:28 -0700 |
commit | 515a201e30272826bd2bab58eecf42a5fa263230 (patch) | |
tree | 03ea283dbd7c9ce332282e85b19d4f1f54efd927 /Alc/alc.cpp | |
parent | 5ac19673db211d1bee7687335af96cee4e6b40d8 (diff) |
Restructure some voice fields
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r-- | Alc/alc.cpp | 13 |
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()); |