diff options
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r-- | Alc/alc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp index b5cc5716..03cbcd53 100644 --- a/Alc/alc.cpp +++ b/Alc/alc.cpp @@ -2835,7 +2835,8 @@ void AllocateVoices(ALCcontext *context, ALsizei num_voices, ALsizei old_sends) voice->Offset = old_voice->Offset; - memcpy(voice->PrevSamples, old_voice->PrevSamples, sizeof(voice->PrevSamples)); + std::copy(std::begin(old_voice->PrevSamples), std::end(old_voice->PrevSamples), + std::begin(voice->PrevSamples)); voice->ResampleState = old_voice->ResampleState; |