aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/bs2b.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/bs2b.cpp')
-rw-r--r--Alc/bs2b.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/bs2b.cpp b/Alc/bs2b.cpp
index 1307e5c1..b1833b8c 100644
--- a/Alc/bs2b.cpp
+++ b/Alc/bs2b.cpp
@@ -127,7 +127,7 @@ int bs2b_get_srate(struct bs2b *bs2b)
void bs2b_clear(struct bs2b *bs2b)
{
- std::memset(&bs2b->last_sample, 0, sizeof(bs2b->last_sample));
+ std::fill(std::begin(bs2b->last_sample), std::end(bs2b->last_sample), bs2b::t_last_sample{});
} /* bs2b_clear */
void bs2b_cross_feed(struct bs2b *bs2b, float *RESTRICT Left, float *RESTRICT Right, int SamplesToDo)