diff options
author | Chris Robinson <[email protected]> | 2018-12-08 14:22:20 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-08 14:22:20 -0800 |
commit | c9f5617f06503d951b3ed808cf07fb6362a7f8d1 (patch) | |
tree | 69fa576f29e7394aa76ebf08453c2d06d4bdbb6a /Alc/bs2b.cpp | |
parent | fc8da0c16b34a964c637c721ff944e8e6a5f3277 (diff) |
Avoid several uses of memset
Diffstat (limited to 'Alc/bs2b.cpp')
-rw-r--r-- | Alc/bs2b.cpp | 2 |
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) |