diff options
| author | 2022-09-13 13:28:50 -0400 | |
|---|---|---|
| committer | 2022-09-13 13:28:54 -0400 | |
| commit | bdb866af1d28d47c36ec84fbcde53f64f09c3fd1 (patch) | |
| tree | ac21c8b4d3229758802a97d7812946956d9f2505 /src/audio_core/renderer/command | |
| parent | Merge pull request #8880 from german77/slow-moving (diff) | |
| download | yuzu-bdb866af1d28d47c36ec84fbcde53f64f09c3fd1.tar.gz yuzu-bdb866af1d28d47c36ec84fbcde53f64f09c3fd1.tar.xz yuzu-bdb866af1d28d47c36ec84fbcde53f64f09c3fd1.zip | |
compressor: Remove unneeded casts in ApplyCompressorEffect
Same behavior, but also silences a -Wcast-qual warning, since the second
cast casts away const.
Diffstat (limited to 'src/audio_core/renderer/command')
| -rw-r--r-- | src/audio_core/renderer/command/effect/compressor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/audio_core/renderer/command/effect/compressor.cpp b/src/audio_core/renderer/command/effect/compressor.cpp index 2ebc140f1..f9bba9f39 100644 --- a/src/audio_core/renderer/command/effect/compressor.cpp +++ b/src/audio_core/renderer/command/effect/compressor.cpp | |||
| @@ -103,8 +103,7 @@ static void ApplyCompressorEffect(CompressorInfo::ParameterVersion2& params, | |||
| 103 | } else { | 103 | } else { |
| 104 | for (s16 channel = 0; channel < params.channel_count; channel++) { | 104 | for (s16 channel = 0; channel < params.channel_count; channel++) { |
| 105 | if (params.inputs[channel] != params.outputs[channel]) { | 105 | if (params.inputs[channel] != params.outputs[channel]) { |
| 106 | std::memcpy((char*)output_buffers[channel].data(), | 106 | std::memcpy(output_buffers[channel].data(), input_buffers[channel].data(), |
| 107 | (char*)input_buffers[channel].data(), | ||
| 108 | output_buffers[channel].size_bytes()); | 107 | output_buffers[channel].size_bytes()); |
| 109 | } | 108 | } |
| 110 | } | 109 | } |