diff options
author | Chris Robinson <[email protected]> | 2020-06-06 07:22:24 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-06-07 11:00:19 -0700 |
commit | c8f67cffc581f67fbdf0430cd5ce14acc863e56c (patch) | |
tree | b415457c19597163ee9b52012e66e10a16f73f00 | |
parent | 03eb6a01b984fd811697b7cd082e755e1bf0833d (diff) |
Use a more appropriate size value for copying
-rw-r--r-- | alc/mixer/hrtfbase.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |