From c8f67cffc581f67fbdf0430cd5ce14acc863e56c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 6 Jun 2020 07:22:24 -0700 Subject: Use a more appropriate size value for copying --- alc/mixer/hrtfbase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alc/mixer') diff --git a/alc/mixer/hrtfbase.h b/alc/mixer/hrtfbase.h index f0995fec..4ec6c95d 100644 --- a/alc/mixer/hrtfbase.h +++ b/alc/mixer/hrtfbase.h @@ -117,7 +117,7 @@ inline void MixDirectHrtfBase(FloatBufferLine &LeftOut, FloatBufferLine &RightOu std::copy(chan_iter->mDelay.cbegin(), chan_iter->mDelay.cend(), tmpiter); /* Save the unfiltered newest input samples for next time. */ - std::copy_n(tempbuf.begin(), HRTF_DIRECT_DELAY, chan_iter->mDelay.begin()); + std::copy_n(tempbuf.begin(), chan_iter->mDelay.size(), chan_iter->mDelay.begin()); /* Apply the all-pass on the reversed signal and reverse the resulting * sample array. This produces the forward response with a backwards -- cgit v1.2.3