diff options
| author | 2022-09-13 13:34:56 -0400 | |
|---|---|---|
| committer | 2022-09-13 13:34:58 -0400 | |
| commit | f08046f4d7f86207bac547263113f5ba0ceab9ff (patch) | |
| tree | afc22d3903dc762b0ee087abf21a85e6f876cb4d /src/audio_core/renderer/command | |
| parent | compressor: Mark params parameters as const (diff) | |
| download | yuzu-f08046f4d7f86207bac547263113f5ba0ceab9ff.tar.gz yuzu-f08046f4d7f86207bac547263113f5ba0ceab9ff.tar.xz yuzu-f08046f4d7f86207bac547263113f5ba0ceab9ff.zip | |
compressor: Simplify memset in InitializeCompressorEffect
Provides equivalent behavior while being significantly smaller.
Diffstat (limited to 'src/audio_core/renderer/command')
| -rw-r--r-- | src/audio_core/renderer/command/effect/compressor.cpp | 2 |
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 8c1b07609..7229618e8 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 | |||
| 33 | 33 | ||
| 34 | static void InitializeCompressorEffect(const CompressorInfo::ParameterVersion2& params, | 34 | static void InitializeCompressorEffect(const CompressorInfo::ParameterVersion2& params, |
| 35 | CompressorInfo::State& state) { | 35 | CompressorInfo::State& state) { |
| 36 | std::memset(&state, 0, sizeof(CompressorInfo::State)); | 36 | state = {}; |
| 37 | 37 | ||
| 38 | state.unk_00 = 0; | 38 | state.unk_00 = 0; |
| 39 | state.unk_04 = 1.0f; | 39 | state.unk_04 = 1.0f; |