aboutsummaryrefslogtreecommitdiff
path: root/src/audio_core/renderer/command/effect
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-09-13 13:34:56 -0400
committerLioncash <mathew1800@gmail.com>2022-09-13 13:34:58 -0400
commitb3c364d18b3cfcb645142baa2157e1b7e94f68b2 (patch)
treeafc22d3903dc762b0ee087abf21a85e6f876cb4d /src/audio_core/renderer/command/effect
parentd145c663c3474fa6e2b7e96576b3b3cf3c99294b (diff)
compressor: Simplify memset in InitializeCompressorEffect
Provides equivalent behavior while being significantly smaller.
Diffstat (limited to 'src/audio_core/renderer/command/effect')
-rw-r--r--src/audio_core/renderer/command/effect/compressor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio_core/renderer/command/effect/compressor.cpp b/src/audio_core/renderer/command/effect/compressor.cpp
index 8c1b076098..7229618e87 100644
--- a/src/audio_core/renderer/command/effect/compressor.cpp
+++ b/src/audio_core/renderer/command/effect/compressor.cpp
@@ -33,7 +33,7 @@ static void SetCompressorEffectParameter(const CompressorInfo::ParameterVersion2
static void InitializeCompressorEffect(const CompressorInfo::ParameterVersion2& params,
CompressorInfo::State& state) {
- std::memset(&state, 0, sizeof(CompressorInfo::State));
+ state = {};
state.unk_00 = 0;
state.unk_04 = 1.0f;